kmeans::WeatherScit Class Reference

Inheritance diagram for kmeans::WeatherScit:

kmeans::W2Outputter kmeans::DbzScit kmeans::IRScit List of all members.

Detailed Description

The satellite/radar tracking algorithm.

Author:
Lakshman
See also:
SatScit, DbzScit
Version:
Id
WeatherScit.h,v 1.6 2009/06/02 20:17:50 lakshman Exp


Public Member Functions

virtual ~WeatherScit ()
virtual void writeWDSSIIOutput (MultiscaleObjectTracker &tracker, const std::string &prefix)
 Over-ride this method appropriately if you wish to write WDSS-II output.
void writeWDSSIIOutput (const std::vector< LImage< int > > &labels, const std::vector< MultiscaleObjectTracker::RegionsProperties > &)
 write out all the scales .
virtual std::vector< code::Index::Record > writeWDSSIIOutput (int scale, const LImage< int > &label, const MultiscaleObjectTracker::RegionsProperties *regprops=0, bool advected=false)
 Over-ride this method appropriately if you wish to write WDSS-II output.
virtual void writeWDSSIIRecord (const code::Index::Record &rec)
void process (const LImage< int > &img, const std::string &file_prefix=std::string())
 Pass in place to write the filename or an empty string to not write seg image anywhere.
void process (const LImage< int > &img, const std::string &file_prefix, size_t current_time)
 Pass in place to write the filename or an empty string to not write seg image anywhere.
 WeatherScit (int minVal, int maxVal, int num_k=16)
 Parameters to the weather tracking algorithm.
void setOrigin (const WeatherScitOutput::NavigationInformation &origin, float pix_per_km)
 Set the lat,lon of your chosen origin.

Protected Attributes

float x0
float y0
float pix_per_km
WeatherScitOutput::NavigationInformation origin


Constructor & Destructor Documentation

virtual kmeans::WeatherScit::~WeatherScit (  )  [inline, virtual]

kmeans::WeatherScit::WeatherScit ( int  minVal,
int  maxVal,
int  num_k = 16 
)

Parameters to the weather tracking algorithm.

All values less than minVal or greater than maxVal are ignored (treated as background).


Member Function Documentation

void kmeans::WeatherScit::process ( const LImage< int > &  img,
const std::string &  file_prefix,
size_t  current_time 
)

Pass in place to write the filename or an empty string to not write seg image anywhere.

Parameters:
file_prefix Something on the lines of /tmp/segimg28 The output files will then be in /tmp/segimg28.0, /tmp/segimg28.1, etc. with the appended numbers denoting coarser and coarser scale.

void kmeans::WeatherScit::process ( const LImage< int > &  img,
const std::string &  file_prefix = std::string() 
)

Pass in place to write the filename or an empty string to not write seg image anywhere.

Parameters:
file_prefix Something on the lines of /tmp/segimg28 The output files will then be in /tmp/segimg28.0, /tmp/segimg28.1, etc. with the appended numbers denoting coarser and coarser scale.

void kmeans::WeatherScit::setOrigin ( const WeatherScitOutput::NavigationInformation origin,
float  pix_per_km 
)

Set the lat,lon of your chosen origin.

See also:
setOriginXY which you may have to over-ride.

virtual std::vector< code::Index::Record > kmeans::WeatherScit::writeWDSSIIOutput ( int  scale,
const LImage< int > &  label,
const MultiscaleObjectTracker::RegionsProperties regprops = 0,
bool  advected = false 
) [inline, virtual]

Over-ride this method appropriately if you wish to write WDSS-II output.

It will be called after the segmentation is done. The first element in the vector will be the most detailed.

The regprops if provided, will be used to write out the mean value in the regions.

Returns:
records written out

Reimplemented in kmeans::W2Outputter.

void kmeans::WeatherScit::writeWDSSIIOutput ( const std::vector< LImage< int > > &  labels,
const std::vector< MultiscaleObjectTracker::RegionsProperties > &   
)

write out all the scales .

..

virtual void kmeans::WeatherScit::writeWDSSIIOutput ( MultiscaleObjectTracker tracker,
const std::string &  prefix 
) [inline, virtual]

Over-ride this method appropriately if you wish to write WDSS-II output.

It will be called when tracker->getRegionsProperties will return the current result.

Reimplemented in kmeans::W2Outputter.

virtual void kmeans::WeatherScit::writeWDSSIIRecord ( const code::Index::Record &  rec  )  [inline, virtual]

Reimplemented in kmeans::W2Outputter.


Member Data Documentation

WeatherScitOutput::NavigationInformation kmeans::WeatherScit::origin [protected]

float kmeans::WeatherScit::pix_per_km [protected]

float kmeans::WeatherScit::x0 [protected]

float kmeans::WeatherScit::y0 [protected]


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