Functions
contrib/tbl/vepl/vepl_dyadic.h File Reference

apply a (fixed) function to all (out,in) pixel pairs More...

#include <vil/vil_image_resource.h>

Go to the source code of this file.

Functions

void vepl_dyadic_sum (vil_image_resource_sptr, vil_image_resource_sptr)
 add the second image to the first one pixelwise.
void vepl_dyadic_dif (vil_image_resource_sptr, vil_image_resource_sptr)
 subtract the second image from the first one pixelwise.
void vepl_dyadic_min (vil_image_resource_sptr, vil_image_resource_sptr)
 replace pixels of the first image by minimum pixel value of both.
void vepl_dyadic_max (vil_image_resource_sptr, vil_image_resource_sptr)
 replace pixels of the first image by maximum pixel value of both.

Detailed Description

apply a (fixed) function to all (out,in) pixel pairs

Typical examples are adding or subtracting images pixel-wise.

Note that the output image (first argument) has to be initialized in advance, as its pixel values are actually both read and written.

Author:
Peter Vanroose, K.U.Leuven (ESAT/PSI)
Date:
7 October 2002
    Modifications
     Peter Vanroose - 20 aug 2003 - changed parameter and return types from vil_image_view_base_sptr to vil_image_resource_sptr
   

Definition in file vepl_dyadic.h.


Function Documentation

void vepl_dyadic_dif ( vil_image_resource_sptr  ,
vil_image_resource_sptr   
)

subtract the second image from the first one pixelwise.

Definition at line 101 of file vepl_dyadic.cxx.

void vepl_dyadic_max ( vil_image_resource_sptr  ,
vil_image_resource_sptr   
)

replace pixels of the first image by maximum pixel value of both.

Definition at line 225 of file vepl_dyadic.cxx.

void vepl_dyadic_min ( vil_image_resource_sptr  ,
vil_image_resource_sptr   
)

replace pixels of the first image by minimum pixel value of both.

Definition at line 168 of file vepl_dyadic.cxx.

void vepl_dyadic_sum ( vil_image_resource_sptr  ,
vil_image_resource_sptr   
)

add the second image to the first one pixelwise.

Definition at line 34 of file vepl_dyadic.cxx.