Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxTriStateThreshold.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxTriStateThreshold (HxImageRep im, HxValue level, HxValue v1, HxValue v2, HxValue v3)
 Tri state threshold. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxTriStateThreshold HxImageRep    im,
HxValue    level,
HxValue    v1,
HxValue    v2,
HxValue    v3
 

Tri state threshold.

The function computes the tri state threshold of all pixels in the input image via a unary pixel operation.

Implementation specifics : The pixel functor : HxUpoTriStateThreshold. The image functor instantiator : HxInstantiatorTriStateThreshold.

00128 {
00129     // Put all non-image parameters in a TagList
00130     HxTagList tags;
00131     HxAddTag(tags, "level", level);
00132     HxAddTag(tags, "v1", v1);
00133     HxAddTag(tags, "v2", v2);
00134     HxAddTag(tags, "v3", v3);
00135 
00136     // call HxImageRep member function to do the image processing
00137     return im.unaryPixOp("triStateThreshold", tags);
00138 }


Generated on Tue Jan 8 13:59:21 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001