w2img::VQSectorization< T > Class Template Reference

List of all members.

Detailed Description

template<class T>
class w2img::VQSectorization< T >

Given a set of spatial grids representing various observed quantities, divides the spatial grid into sectors using vector quantization.

The sectors represent areas where the data are similar.

Works with RadialSet and LatLonGrid

Author:
lakshman
Version:
Id
w2img_VQSectorization.h,v 1.2 2012/04/17 15:36:51 Valliappa.Lakshmanan Exp


Public Member Functions

 VQSectorization (int maxiter=5, int min_sector_size=100, int max_sector_size=1000, code::SmartPtr< DistanceFunction > distFunc=new SimpleDistanceFunction())
 You can use the SimpleDistanceFunction in this class or supply your own.
sectorize (const std::vector< T > &data)
 The data have to be scaled in the range 0-1.

Classes

class  DistanceFunction
struct  Pixel
class  SimpleDistanceFunction


Constructor & Destructor Documentation

template<class T>
w2img::VQSectorization< T >::VQSectorization ( int  maxiter = 5,
int  min_sector_size = 100,
int  max_sector_size = 1000,
code::SmartPtr< DistanceFunction distFunc = new SimpleDistanceFunction() 
)

You can use the SimpleDistanceFunction in this class or supply your own.


Member Function Documentation

template<class T>
T w2img::VQSectorization< T >::sectorize ( const std::vector< T > &  data  ) 

The data have to be scaled in the range 0-1.

Pixels that are missing from *any* field will not be used. If you don't want this behavior, replace MissingData with 0 or something.


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