#include <iostream>
#include <string>
#include <cstdlib>
int
main(int argc, char * argv[])
{
if (argc < 10)
{
std::cerr << "Missing Parameters " << std::endl;
std::cerr << "Usage: " << argv[0];
std::cerr << " inputImage outputImage seedX seedY";
std::cerr << " Sigma SigmoidAlpha SigmoidBeta TimeThreshold StoppingTime" << std::endl;
return EXIT_FAILURE;
}
const std::string inputFilename(argv[1]);
const std::string outputFilename(argv[2]);
unsigned int seedPosition[2];
seedPosition[0] = atoi(argv[3]);
seedPosition[1] = atoi(argv[4]);
const double sigma = atof(argv[5]);
const double alpha = atof(argv[6]);
const double beta = atof(argv[7]);
const double timeThreshold = atof(argv[8]);
const double stoppingTime = atof(argv[9]);
std::vector<unsigned int> trialPoint(3);
trialPoint[0] = seedPosition[0];
trialPoint[1] = seedPosition[1];
trialPoint[2] = 0u;
return 0;
}
Binarize an input image by thresholding.
void SetLowerThreshold(double LowerThreshold)
void SetUpperThreshold(double UpperThreshold)
Image Execute(Image &&image1)
void SetInsideValue(uint8_t InsideValue)
void SetOutsideValue(uint8_t OutsideValue)
This filter performs anisotropic diffusion on a scalar itk::Image using the modified curvature diffus...
void SetConductanceParameter(double ConductanceParameter)
void SetNumberOfIterations(uint32_t NumberOfIterations)
Image Execute(Image &&image1)
void SetTimeStep(double TimeStep)
Solve an Eikonal equation using Fast Marching.
void AddTrialPoint(std::vector< unsigned int > point)
Add TrialPoints point.
void SetStoppingValue(double StoppingValue)
Image Execute(const Image &image1)
Computes the Magnitude of the Gradient of an image by convolution with the first derivative of a Gaus...
Image Execute(Image &&image1)
void SetSigma(double Sigma)
The Image class for SimpleITK.
Computes the sigmoid function pixel-wise.
void SetAlpha(double Alpha)
void SetOutputMinimum(double OutputMinimum)
void SetOutputMaximum(double OutputMaximum)
Image Execute(Image &&image1)
void SetBeta(double Beta)
SITKIO_EXPORT Image ReadImage(const PathType &filename, PixelIDValueEnum outputPixelType=sitkUnknown, const std::string &imageIO="")
ReadImage is a procedural interface to the ImageFileReader class which is convenient for most image r...
SITKIO_EXPORT void WriteImage(const Image &image, const PathType &fileName, bool useCompression=false, int compressionLevel=-1)
WriteImage is a procedural interface to the ImageFileWriter. class which is convenient for many image...