Classes
contrib/tbl/vipl/vipl_monadic.h File Reference

apply any (fixed) function to all pixels More...

#include <vipl/filter/vipl_filter_2d.h>

Go to the source code of this file.

Classes

class  vipl_monadic< ImgIn, ImgOut, DataIn, DataOut, PixelItr >
 apply any (fixed) function to all pixels. More...

Detailed Description

apply any (fixed) function to all pixels

This image processing class is implemented using the vipl filters, which means that it can be used with any image class (IUE or not, TargetJr or not, vil or vil1 or not) of any pixel data type.

The only parameter to be passed to the constructor must be a (monadic) function that takes a pixel value from the input image and produces a pixel value of the output image, i.e., its signature must be DataOut f(DataIn const&). A typical example is, e.g., log(), but any point operator (like e.g. thresholding) could be implemented through this more general monadic IP operator, notably shift or scale of intensity values.

Note that the input and output images are allowed to be identical.

Author:
Peter Vanroose, K.U.Leuven (ESAT/PSI)
Date:
15 September 1999.
   Modifications:
     Peter Vanroose, Aug.2000 - adapted to vxl
   

Definition in file vipl_monadic.h.