00001 #ifndef vepl1_dyadic_h_ 00002 #define vepl1_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 28 April 2001 00014 00015 #include <vil1/vil1_image.h> 00016 00017 //: add the second image to the first one pixelwise 00018 void vepl1_dyadic_sum(vil1_image , vil1_image const& ); 00019 //: subtract the second image from the first one pixelwise 00020 void vepl1_dyadic_dif(vil1_image , vil1_image const& ); 00021 //: replace pixels of the first image by minimum pixel value of both 00022 void vepl1_dyadic_min(vil1_image , vil1_image const& ); 00023 //: replace pixels of the first image by maximum pixel value of both 00024 void vepl1_dyadic_max(vil1_image , vil1_image const& ); 00025 00026 #endif // vepl1_dyadic_h_