#include <cstdlib>
#include <iostream>
{
return (
sitk::Cast(image, sitk::sitkFloat32) - shift) / scale;
}
DifferenceOfGaussian(
sitk::Image image,
double sigma1,
double sigma2)
{
}
int
main(int argc, char * argv[])
{
if (argc < 5)
{
std::cerr << "Missing Parameters " << std::endl;
std::cerr << "Usage: " << argv[0];
std::cerr << " inputImage outputImage lowerSigma upperSigma" << std::endl;
return 1;
}
const double sigma1 = atof(argv[3]);
const double sigma2 = atof(argv[4]);
image = MinusOneToOne(image);
image = DifferenceOfGaussian(image, sigma1, sigma2);
return 0;
}
Read an image file and return a SimpleITK Image.
Image Execute() override
Set/Get The output PixelType of the image.
Self & SetFileName(const PathType &fn)
The Image class for SimpleITK.
Computes the minimum and the maximum intensity values of an image.
double GetMaximum() const
void Execute(const Image &image)
double GetMinimum() const
Computes the smoothing of an image by convolution with the Gaussian kernels implemented as IIR filter...
Image Execute(Image &&image1)
Self & SetSigma(std::vector< double > Sigma)
Image Subtract(Image &&image1, const Image &image2)
Pixel-wise subtraction of two images.
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...
Image Cast(const Image &image, PixelIDValueEnum pixelID)