using System;
namespace itk.simple.examples {
m_ProcessObject = po;
}
public override void Execute() {
Console.WriteLine(
"{0} Progress: {1:0.00}", m_ProcessObject.
GetName(), m_ProcessObject.
GetProgress() );
}
}
class FilterProgressReporting {
static void Main(string[] args) {
try {
if (args.Length < 3) {
Console.WriteLine("Usage: {0} <input> <variance> <output>", args[0]);
return;
}
MyCommand cmd = new MyCommand(filter);
} catch (Exception ex) {
Console.WriteLine(ex);
}
}
}
}
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.
Image Execute() override
Set/Get The output PixelType of the 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.
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.
virtual float GetProgress() const
An Active Measurement of the progress of execution.
virtual std::string GetName() const =0
EventEnum
Events which can be observed from ProcessObject.