#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#include <stdlib.h>
#include <iostream>
int main( int argc, char *argv[])
{
if( argc < 7 )
{
std::cerr << "Missing Parameters " << std::endl;
std::cerr << "Usage: " << argv[0];
std::cerr << " inputImage outputImage lowerThreshold upperThreshold seedX seedY [seed2X seed2Y ... ]" << std::endl;
return 1;
}
image = blurFilter.
Execute( image );
segmentationFilter.
SetLower( atof( argv[3] ) );
segmentationFilter.
SetUpper( atof( argv[4] ) );
for (int i = 5; i+1 < argc; i+=2)
{
std::vector<unsigned int> seed = { (unsigned int) atoi(argv[i]), (unsigned int) atoi(argv[i+1]) };
std::cout << "Adding a seed at: ";
for( unsigned int j = 0; j < seed.size(); ++j )
{
std::cout << seed[j] << " ";
}
std::cout << std::endl;
}
return 0;
}