Inheritance diagram for kmeans::WeatherScit:
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 |
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).
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.
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.
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.
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.
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.
float kmeans::WeatherScit::pix_per_km [protected] |
float kmeans::WeatherScit::x0 [protected] |
float kmeans::WeatherScit::y0 [protected] |