56 friend bool region_search_border(std::set<IRD*>&,
IRD*);
57 friend void collect_subregions_recursive(std::set<IRD*>&,
IRD*);
58 friend bool is_region_contained(
IRD*,
IRD*);
59 friend bool region_search_outer_bb(
const utils::Rect&,std::set<IRD*>&,
IRD*);
101 boundingBox(0),cog(0),pcainfo(0),
102 boundaryLength(0),boundary(0),
103 thinned_boundary(0),pixels(0){}
105 if(boundingBox)
delete boundingBox;
107 if(pcainfo)
delete pcainfo;
108 if(boundary)
delete boundary;
109 if(thinned_boundary)
delete thinned_boundary;
110 if(pixels)
delete pixels;
151 directSubRegions(0),allSubRegions(0),parent(0),
152 parentTree(0),publicNeighbours(0),cssParams(0){}
154 if(directSubRegions)
delete directSubRegions;
155 if(allSubRegions)
delete allSubRegions;
156 if(parent)
delete parent;
157 if(parentTree)
delete parentTree;
158 if(publicNeighbours)
delete publicNeighbours;
159 if(cssParams)
delete cssParams;
177 value(value),id(id),size(0),image(image),segments(segmentSize),graph(createGraph ? new
RegionGraphInfo : 0),
178 simple(0),complex(0),css(css){}
182 if(graph)
delete graph;
183 if(simple)
delete simple;
184 if(complex)
delete complex;
192 graph->neighbours.insert(a);
195 if(graph->neighbours.insert(a).second){
204 graph->children.push_back(a);
209 void showTree(
int indent=0)
const;
212 void showWithNeighbours()
const;
utils::Any meta
meta data, that can be associated with a region structure
Definition: ImageRegionData.h:78
undocument this line if you encounter any issues!
Definition: Any.h:37
ImageRegionData IRD
Definition: ImageRegionData.h:52
const core::ImgBase * image
underlying image
Definition: ImageRegionData.h:72
ImageRegionData * parent
parent region
Definition: ImageRegionData.h:95
float getAngleThreshold() const
Definition: CornerDetectorCSS.h:172
Curvature Corner Detector.
Definition: CornerDetectorCSS.h:89
CornerDetectorCSS * css
for corner detection
Definition: ImageRegionData.h:170
int value
image pixle value
Definition: ImageRegionData.h:63
float getSigma() const
Definition: CornerDetectorCSS.h:174
bool isBorder
is the region connected to the border
Definition: ImageRegionData.h:86
struct icl::cv::ImageRegionData::RegionGraphInfo * graph
optional information about the region graph
~ImageRegionData()
Destructor.
Definition: ImageRegionData.h:181
float straight_line_thresh
Definition: ImageRegionData.h:128
void setFrom(CornerDetectorCSS *css)
Definition: ImageRegionData.h:139
int size
pixel-count
Definition: ImageRegionData.h:69
#define ICLCV_API
Definition: CompatMacros.h:177
std::vector< LineSegment > segments
list of line segments
Definition: ImageRegionData.h:75
ImageRegionData(CornerDetectorCSS *css, int value, int id, unsigned int segmentSize, bool createGraph, const core::ImgBase *image)
Constructor.
Definition: ImageRegionData.h:176
Definition: ImageRegionData.h:123
float getCurvatureCutoff() const
Definition: CornerDetectorCSS.h:175
float angle_thresh
Definition: ImageRegionData.h:124
float curvature_cutoff
Definition: ImageRegionData.h:127
ImageRegion Structure providing region feature information.
Definition: ImageRegion.h:99
int id
Region-ID.
Definition: ImageRegionData.h:66
std::vector< ImageRegionData * > children
Definition: ImageRegionData.h:92
SimpleInformation * ensureSimple()
utility function
Definition: ImageRegionData.h:221
std::set< ImageRegionData * > neighbours
Definition: ImageRegionData.h:89
Complex utility class for detection of connected image components.
Definition: RegionDetector.h:179
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
void link(ImageRegionData *a)
Definition: ImageRegionData.h:188
Utility class for shallow copied data of image region class.
Definition: ImageRegionData.h:50
void addChild(ImageRegionData *a)
adds a new child region
Definition: ImageRegionData.h:203
structure for representing region-graph information
Definition: ImageRegionData.h:81
float sigma
Definition: ImageRegionData.h:126
RegionGraphInfo()
Constructor.
Definition: ImageRegionData.h:83
The ImageRegionPart represents a intermediate region part for the connected component analysis.
Definition: ImageRegionPart.h:42
ComplexInformation * ensureComplex()
utility function
Definition: ImageRegionData.h:215
float getRCCoeff() const
Definition: CornerDetectorCSS.h:173
std::vector< utils::Point32f > resultBuffer
Definition: ImageRegionData.h:129
Rectangle class of the ICL used e.g. for the Images ROI-rect.
Definition: Rect.h:95
Simple generic data type implementation that uses a string based data representation.
Definition: Any.h:109
float getStraightLineThreshold() const
Definition: CornerDetectorCSS.h:176
float rc_coeff
Definition: ImageRegionData.h:125
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
data-struct to represent local PCA information
Definition: RegionPCAInfo.h:39
bool isOk(CornerDetectorCSS *css) const
Definition: ImageRegionData.h:131