latest version v1.9 - last update 10 Apr 2010 |
Threshold segmentation of a single channel (monochrom) image or a contour. More...
#include <ltiThresholdSegmentation.h>
Threshold segmentation of a single channel (monochrom) image or a contour.
An upper and a lower threshold are used in order to define the pixel-value-region where the thresholding should operate.
lti::thresholdSegmentation::thresholdSegmentation | ( | ) |
default constructor
lti::thresholdSegmentation::thresholdSegmentation | ( | const thresholdSegmentation & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::thresholdSegmentation::~thresholdSegmentation | ( | ) | [virtual] |
destructor
areaPoints& lti::thresholdSegmentation::apply | ( | const channel & | src, | |
const areaPoints & | comp, | |||
areaPoints & | dest | |||
) | const |
areaPoints& lti::thresholdSegmentation::apply | ( | const channel8 & | src, | |
const areaPoints & | comp, | |||
areaPoints & | dest | |||
) | const |
areaPoints& lti::thresholdSegmentation::apply | ( | const channel & | src, | |
areaPoints & | dest | |||
) | const |
segmentate the channel src, and generate an area-points-list on for the given dest-contour
src | channel with the source data. | |
dest | the area point list where the result will be left. Only the area points will be generated. If you need another contour representation you can use the castFrom methods of the other point list types (see lti::borderPoints, lti::ioPoints) |
dest
. contour is of IO type areaPoints& lti::thresholdSegmentation::apply | ( | const channel8 & | src, | |
areaPoints & | dest | |||
) | const |
generates a mask for the channel src.
If the parameters specified "Original" for the output values, the values between 0.0 and 1.0 will be linearly mapped between 0 and 255.
dest
. operates on the given parameter.
srcdest | channel8 with the source data. The result will be left here too. |
srcdest
. virtual functor* lti::thresholdSegmentation::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the functor.
Reimplemented from lti::segmentation.
thresholdSegmentation& lti::thresholdSegmentation::copy | ( | const thresholdSegmentation & | other | ) |
copy data of "other" functor.
Reimplemented from lti::segmentation.
const parameters& lti::thresholdSegmentation::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::functor.
virtual const char* lti::thresholdSegmentation::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("thresholdSegmentation")
Reimplemented from lti::segmentation.
virtual bool lti::thresholdSegmentation::updateParameters | ( | ) | [virtual] |
sets the functor's parameters.
This member makes a copy of theParam: the functor will keep its own copy of the parameters!
Reimplemented from lti::functor.
ubyte lti::thresholdSegmentation::lut[256] [protected] |
This look up table will be used to accelerate the segmentation of channel8 data.
It contains the value to be assigned to the destination channel It will be generated within the member setParameters
ubyte lti::thresholdSegmentation::mask[256] [protected] |
This look up table will be used to accelerate the segmentation of channel8 data.
It contains 0 if the value must be considered as background or 1 otherwise. It will be generated within the member setParameters