00001 #ifndef vepl_dyadic_h_ 00002 #define vepl_dyadic_h_ 00003 //: 00004 // \file 00005 // \brief apply a (fixed) function to all (out,in) pixel pairs 00006 // 00007 // Typical examples are adding or subtracting images pixel-wise. 00008 // 00009 // Note that the output image (first argument) has to be initialized 00010 // in advance, as its pixel values are actually both read and written. 00011 // 00012 // \author Peter Vanroose, K.U.Leuven (ESAT/PSI) 00013 // \date 7 October 2002 00014 // 00015 // \verbatim 00016 // Modifications 00017 // Peter Vanroose - 20 aug 2003 - changed parameter and return types from vil_image_view_base_sptr to vil_image_resource_sptr 00018 // \endverbatim 00019 00020 #include <vil/vil_image_resource.h> 00021 00022 //: add the second image to the first one pixelwise 00023 void vepl_dyadic_sum(vil_image_resource_sptr, vil_image_resource_sptr); 00024 //: subtract the second image from the first one pixelwise 00025 void vepl_dyadic_dif(vil_image_resource_sptr, vil_image_resource_sptr); 00026 //: replace pixels of the first image by minimum pixel value of both 00027 void vepl_dyadic_min(vil_image_resource_sptr, vil_image_resource_sptr); 00028 //: replace pixels of the first image by maximum pixel value of both 00029 void vepl_dyadic_max(vil_image_resource_sptr, vil_image_resource_sptr); 00030 00031 #endif // vepl_dyadic_h_