contrib/tbl/vepl2/vepl2_threshold.h File Reference


Detailed Description

set pixel to given value if above/below certain threshold

This class actually implements two threshold operations, namely the `classical' single threshold mapping where pixel values not larger than T are mapped to L, values larger than T to H; and the `clipping' operation where only pixel values below T are mapped to L, the others left unchanged.

For the first version, the constructor must be given three parameters: T, L and H. For the second version, two parameters: T and L. In the second situation, there clearly must be an implicit conversion from DataIn to DataOut. Note that this is not necessary in the first situation, because all output pixels will be either L or H.

Note that the input image data type must support "operator<=()"; thus thresholding of colour images makes no sense (unless you define a sensible "<=" for RGB triples).

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 vepl2_threshold.h.

#include <vil/vil_image_resource.h>

Go to the source code of this file.


Functions

vil_image_resource_sptr vepl2_threshold (vil_image_resource_sptr, double threshold=128.0, double below=1.0, double above=0.0)
 set pixel to given value if above/below certain threshold.

Function Documentation

vil_image_resource_sptr vepl2_threshold ( vil_image_resource_sptr  ,
double  threshold = 128.0,
double  below = 1.0,
double  above = 0.0 
)

set pixel to given value if above/below certain threshold.

Definition at line 12 of file vepl2_threshold.cxx.


Generated on Sat Nov 22 05:13:11 2008 for contrib/tbl/vepl2 by  doxygen 1.5.1