#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.
Self & SetLowerThreshold(double LowerThreshold)
Self & SetOutsideValue(uint8_t OutsideValue)
Image Execute(Image &&image1)
Self & SetInsideValue(uint8_t InsideValue)
Self & SetUpperThreshold(double UpperThreshold)
This filter performs anisotropic diffusion on a scalar itk::Image using the modified curvature diffus...
Self & SetTimeStep(double TimeStep)
Self & SetConductanceParameter(double ConductanceParameter)
Image Execute(Image &&image1)
Self & SetNumberOfIterations(uint32_t NumberOfIterations)
Solve an Eikonal equation using Fast Marching.
Self & SetStoppingValue(double StoppingValue)
Self & AddTrialPoint(std::vector< unsigned int > point)
Add TrialPoints point.
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)
Self & SetSigma(double Sigma)
The Image class for SimpleITK.
Computes the sigmoid function pixel-wise.
Self & SetOutputMinimum(double OutputMinimum)
Self & SetAlpha(double Alpha)
Self & SetBeta(double Beta)
Image Execute(Image &&image1)
Self & SetOutputMaximum(double OutputMaximum)
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...