Every region includes its pixels as well as the pixels of its children. For every region, it is possible to get the region-id's of all of its ancestors.
Public Types | |
typedef Pixel2D | Pixel |
Public Member Functions | |
HierarchicalCluster () | |
Invalid object. | |
bool | isValid () const |
HierarchicalCluster (const w2img::SegmenterResult &labeledImage, const code::Image< float > &data, const code::Time &time) | |
HierarchicalCluster (const GridType &labeledImage) | |
The image is labeled with region numbers. | |
std::vector< Region > & | regions () |
const std::vector< Region > & | getRegions () const |
const code::Time & | getTime () const |
const w2img::SegmenterResult & | getSegments () const |
return the labeled image. | |
GridType | getKMeansGrid (const GridType &grid) const |
return the labeled image as a GridType. | |
Classes | |
struct | Region |
typedef Pixel2D w2kmeans::HierarchicalCluster< GridType >::Pixel |
w2kmeans::HierarchicalCluster< GridType >::HierarchicalCluster | ( | ) | [inline] |
Invalid object.
w2kmeans::HierarchicalCluster< GridType >::HierarchicalCluster | ( | const w2img::SegmenterResult & | labeledImage, | |
const code::Image< float > & | data, | |||
const code::Time & | time | |||
) |
w2kmeans::HierarchicalCluster< GridType >::HierarchicalCluster | ( | const GridType & | labeledImage | ) |
The image is labeled with region numbers.
A value of 0 indicates background; the regions are numbered 1,2,...N Since we don't know the original data here, we'll assume that the regions all have a data value of Unavailable. So, calling cval() on the resulting regions will always return Unavailable.
GridType w2kmeans::HierarchicalCluster< GridType >::getKMeansGrid | ( | const GridType & | grid | ) | const |
return the labeled image as a GridType.
Pass in a template grid.
const std::vector<Region>& w2kmeans::HierarchicalCluster< GridType >::getRegions | ( | ) | const [inline] |
const w2img::SegmenterResult& w2kmeans::HierarchicalCluster< GridType >::getSegments | ( | ) | const [inline] |
return the labeled image.
const code::Time& w2kmeans::HierarchicalCluster< GridType >::getTime | ( | ) | const [inline] |
bool w2kmeans::HierarchicalCluster< GridType >::isValid | ( | ) | const [inline] |
std::vector<Region>& w2kmeans::HierarchicalCluster< GridType >::regions | ( | ) | [inline] |