31 #ifndef RUNLENGTHOP_H_
32 #define RUNLENGTHOP_H_
55 RunLengthOp(
const std::string &name,
double threshold=0) :
56 ImageOp(name,
"Computes lengths of segments of intensity above threshold.") {
57 parameters.link(
"threshold", this->threshold = threshold);
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition: Log.h:308
Image with static geometry.
Definition: ImageChannel.h:60
Base class for image processing functions.
Definition: ImageOp.h:49
ImageOp(const std::string &name=__FUNCTION__, const std::string &description="")
Definition: ImageOp.h:156
void traverseChannelsSeparately(const ImageTray< const Channel > &src, ImageTray< Channel > &dst) const
Process each (src,dst) channel pair independently. Raise error if their counts differ.
Definition: ImageOp.cpp:340
Container applicable for Channels and Images, with alpha support.
Definition: ImageTray.h:267
Computes lengths of horizontal segments.
Definition: RunLengthOp.h:83
void traverseChannel(const Channel &src, Channel &dst) const
Apply to single channel.
Definition: RunLengthOp.cpp:45
RunLengthHorzOp(double threshold=0.0)
Default constructor.
Definition: RunLengthOp.h:91
Base class for RunLengthHorzOp and RunLengthVertOp.
Definition: RunLengthOp.h:52
Computes lengths of vertical segments.
Definition: RunLengthOp.h:107
void traverseChannel(const Channel &src, Channel &dst) const
Computes lengths of horizontal or vertical segments.
Definition: RunLengthOp.cpp:126
RunLengthVertOp(double threshold=0.0)
Default constructor.
Definition: RunLengthOp.h:115
Definition: DataSelector.cpp:1277