STIRA  0.1
Public Member Functions | Static Public Member Functions | List of all members
stira::imageanalysis::FindMaximalIncludedRectangles Class Reference

finds maximal rectangles contained in an object Maximal means that the rectangle can not be in its whole part of a larger rectangle Algorithm is from http://www.montefiore.ulg.ac.be/~pierard/rectangles/ More...

#include <FindMaximalIncludedRectangles.h>

Public Member Functions

 FindMaximalIncludedRectangles ()
 constructor
 

Static Public Member Functions

static std::vector< common::RectangularROI< int > > Run (ArrayGrid< bool > *pObjectGrid)
 finds contained maximum rectangles contained in boolean object More...
 
static histogram::IntHistogram CreateRectangleHistogram (std::vector< common::RectangularROI< int > > vRectangle, rectangleMeasure myMeasure=MEASURE_AREA, bool isCumulative=true)
 

Detailed Description

finds maximal rectangles contained in an object Maximal means that the rectangle can not be in its whole part of a larger rectangle Algorithm is from http://www.montefiore.ulg.ac.be/~pierard/rectangles/

Member Function Documentation

std::vector< RectangularROI< int > > stira::imageanalysis::FindMaximalIncludedRectangles::Run ( ArrayGrid< bool > *  pObjectGrid)
static

finds contained maximum rectangles contained in boolean object

Parameters
pObjectGridinput boolean grid
Returns
vector of maximum contained rectangles

References stira::histogram::HistogramMaster< T >::AddDataPoint(), stira::histogram::IntHistogram::ConvertInCumulativeHistogram(), stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), and stira::imagedata::ArrayGrid< T >::GetWidth().


The documentation for this class was generated from the following files: