44 virtual int getID()
const = 0;
45 virtual bool isHole()
const = 0;
46 virtual const std::vector<int> &
getChildren()
const = 0;
61 inline operator bool()
const {
83 return (
int)(end() - begin());
126 AccurateWithHierarchy
142 const std::vector<Contour> &detect(
const core::ImgBase *image);
145 const std::vector<Contour> &detect(
core::Img8u &image);
148 void setThreshold(
const icl8u &threshold);
151 void setAlgorithm(Algorithm a);
accurate contour detection algorithm (using 8-point neighborhood)
Definition: ContourDetector.h:125
undocument this line if you encounter any issues!
Definition: Any.h:37
Class interface for un-copyable classes.
Definition: Uncopyable.h:64
The ContourDetector extracts all contours of a given image.
Definition: ContourDetector.h:112
Ipp8u icl8u
8Bit unsigned integer type for the ICL
Definition: BasicTypes.h:64
Data * m_data
internal data pointer
Definition: ContourDetector.h:115
virtual const utils::Point * end() const =0
int getID() const
Definition: ContourDetector.h:67
const utils::Point * end() const
Definition: ContourDetector.h:79
const int getSize() const
Definition: ContourDetector.h:82
Algorithm
contour tracing algorithm used
Definition: ContourDetector.h:123
const std::vector< int > & getChildren() const
Definition: ContourDetector.h:73
virtual bool isHole() const =0
const utils::Point * begin() const
Definition: ContourDetector.h:76
virtual const utils::Point * begin() const =0
#define ICLCV_API
Definition: CompatMacros.h:177
Utility class used by the ContourDetector.
Definition: ContourDetector.h:52
Ipp64f icl64f
64Bit floating point type for the ICL
Definition: BasicTypes.h:52
fast contour detection algorithm (using 4-point neighbourhood)
Definition: ContourDetector.h:124
ICLQt_API ImgQ thresh(const ImgQ &image, float threshold)
performs an image binarisation for each channel with given threshold
ContourImpl * impl
Definition: ContourDetector.h:53
virtual const std::vector< int > & getChildren() const =0
bool isHole() const
Definition: ContourDetector.h:70
Point class of the ICL used e.g. for the Images ROI offset.
Definition: Point.h:58
bool isNull() const
Definition: ContourDetector.h:58
Definition: ContourDetector.h:42
bool hasHierarchy() const
Definition: ContourDetector.h:64
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
virtual int getID() const =0
virtual bool hasHierarchy() const =0
Contour(ContourImpl *impl=0)
Definition: ContourDetector.h:56