Inheritance diagram for kmeans::W2Outputter:
Subclasses have to implement processRecordImpl() appropriately.
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 |
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.
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.
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.
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.
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] |
virtual void kmeans::W2Outputter::writeWDSSIIOutput | ( | MultiscaleObjectTracker & | tracker, | |
const std::string & | prefix | |||
) | [virtual] |
virtual void kmeans::W2Outputter::writeWDSSIIRecord | ( | const code::Index::Record & | rec | ) | [virtual] |
Reimplemented from kmeans::WeatherScit.
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] |