kmeans::W2Outputter Class Reference

Inheritance diagram for kmeans::W2Outputter:

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

Detailed Description

A WeatherScit abstract class that can output in a format that w2 can read.

Subclasses have to implement processRecordImpl() appropriately.

Author:
Lakshman
Version:
Id
W2Outputter.h,v 1.8 2009/06/02 20:17:50 lakshman Exp


Public Member Functions

 W2Outputter (const std::string &outputDir, const std::string &lbName, int min_val, int max_val, int num_k, const WeatherScitOutput::PolygonController *=0, bool inXMLDataFormat=true)
 The polygon controller, if provided, should be a valid object throughout the lifetime of this W2Outputter.
virtual void writeWDSSIIOutput (MultiscaleObjectTracker &tracker, const std::string &prefix)
 writes out XMLdata output that w2 can read.
virtual std::vector< code::Index::Record > writeWDSSIIOutput (int scale, const LImage< int > &labels, const MultiscaleObjectTracker::RegionsProperties *regprops=0, bool advected=false)
 writes out cartesian grid of the scaled outputs.
virtual void writeWDSSIIRecord (const code::Index::Record &rec)
void processRecord (const code::Index::Record &rec)
const std::string & getOutputDir ()
void writeWDSSIIOutput (const std::vector< LImage< int > > &labels, const std::vector< MultiscaleObjectTracker::RegionsProperties > &)
 write out all the scales .
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.
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

kmeans::W2Outputter::W2Outputter ( const std::string &  outputDir,
const std::string &  lbName,
int  min_val,
int  max_val,
int  num_k,
const WeatherScitOutput::PolygonController = 0,
bool  inXMLDataFormat = true 
)

The polygon controller, if provided, should be a valid object throughout the lifetime of this W2Outputter.


Member Function Documentation

const std::string& kmeans::W2Outputter::getOutputDir (  )  [inline]

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

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() 
) [inherited]

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::W2Outputter::processRecord ( const code::Index::Record &  rec  ) 

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

Set the lat,lon of your chosen origin.

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

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

write out all the scales .

..

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

writes out cartesian grid of the scaled outputs.

Reimplemented from kmeans::WeatherScit.

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

writes out XMLdata output that w2 can read.

Reimplemented from kmeans::WeatherScit.

virtual void kmeans::W2Outputter::writeWDSSIIRecord ( const code::Index::Record &  rec  )  [virtual]

Reimplemented from kmeans::WeatherScit.


Member Data Documentation

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

float kmeans::WeatherScit::pix_per_km [protected, inherited]

float kmeans::WeatherScit::x0 [protected, inherited]

float kmeans::WeatherScit::y0 [protected, inherited]


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