#include <iostream>
#include <stdlib.h>
#include <iomanip>
{
public:
: m_Process(po)
{}
void
{
std::ios state(NULL);
state.copyfmt(std::cout);
std::cout << std::fixed << std::setw(3) << std::setprecision(2);
std::cout << m_Process.GetName() << " Progress: " << m_Process.GetProgress() << std::endl;
std::cout.copyfmt(state);
}
private:
};
int
main(int argc, char * argv[])
{
if (argc < 4)
{
std::cerr << "Usage: " << argv[0] << " <input> <variance> <output>\n";
return 1;
}
ProgressUpdate cmd(gaussian);
return 0;
}
A hybrid cast image filter to convert images to other types of images.
Self & SetOutputPixelType(PixelIDValueEnum pixelID)
Image Execute(const Image &)
An implementation of the Command design pattern for callback.
Blurs an image by separable convolution with discrete gaussian kernels. This filter performs Gaussian...
Image Execute(const Image &image1)
Self & SetVariance(std::vector< double > Variance)
Read an image file and return a SimpleITK Image.
Self & SetFileName(const PathType &fn)
Write out a SimpleITK image to the specified file location.
Self & SetFileName(const PathType &fileName)
Self & Execute(const Image &)
The Image class for SimpleITK.
PixelIDValueEnum GetPixelID() const
Base class for SimpleITK classes based on ProcessObject.
virtual int AddCommand(itk::simple::EventEnum event, itk::simple::Command &cmd)
Add a Command Object to observer the event.
@ sitkProgressEvent
Occurs when the progress changes in most process objects.
@ sitkStartEvent
Occurs when then itk::ProcessObject is starting.
@ sitkEndEvent
Occurs at then end of normal processing.