w2kmeans::HierarchicalCluster< GridType > Class Template Reference

List of all members.

Detailed Description

template<class GridType>
class w2kmeans::HierarchicalCluster< GridType >

The HierarchicalCluster is the final clustering result at a particular scale.

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::SegmenterResultgetSegments () const
 return the labeled image.
GridType getKMeansGrid (const GridType &grid) const
 return the labeled image as a GridType.

Classes

struct  Region


Member Typedef Documentation

template<class GridType>
typedef Pixel2D w2kmeans::HierarchicalCluster< GridType >::Pixel


Constructor & Destructor Documentation

template<class GridType>
w2kmeans::HierarchicalCluster< GridType >::HierarchicalCluster (  )  [inline]

Invalid object.

template<class GridType>
w2kmeans::HierarchicalCluster< GridType >::HierarchicalCluster ( const w2img::SegmenterResult labeledImage,
const code::Image< float > &  data,
const code::Time &  time 
)

template<class GridType>
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.


Member Function Documentation

template<class GridType>
GridType w2kmeans::HierarchicalCluster< GridType >::getKMeansGrid ( const GridType &  grid  )  const

return the labeled image as a GridType.

Pass in a template grid.

template<class GridType>
const std::vector<Region>& w2kmeans::HierarchicalCluster< GridType >::getRegions (  )  const [inline]

template<class GridType>
const w2img::SegmenterResult& w2kmeans::HierarchicalCluster< GridType >::getSegments (  )  const [inline]

return the labeled image.

template<class GridType>
const code::Time& w2kmeans::HierarchicalCluster< GridType >::getTime (  )  const [inline]

template<class GridType>
bool w2kmeans::HierarchicalCluster< GridType >::isValid (  )  const [inline]

template<class GridType>
std::vector<Region>& w2kmeans::HierarchicalCluster< GridType >::regions (  )  [inline]


Generated on Fri May 4 13:40:24 2012 for WDSS-IIw2algs by  doxygen 1.4.7