|
Image | Execute (const Image &image1) |
|
Image | Execute (const Image &image1, const std::vector< uint32_t > &size, Transform transform, InterpolatorEnum interpolator, const std::vector< double > &outputOrigin, const std::vector< double > &outputSpacing, std::vector< double > outputDirection, double defaultPixelValue, PixelIDValueEnum outputPixelType) |
|
double | GetDefaultPixelValue () const |
|
InterpolatorEnum | GetInterpolator () const |
|
std::string | GetName () const |
|
std::vector< double > | GetOutputDirection () const |
|
std::vector< double > | GetOutputOrigin () const |
|
PixelIDValueEnum | GetOutputPixelType () const |
| Get the ouput pixel type. More...
|
|
std::vector< double > | GetOutputSpacing () const |
|
std::vector< uint32_t > | GetSize () const |
|
Transform | GetTransform () const |
|
| ResampleImageFilter () |
|
Self & | SetDefaultPixelValue (double DefaultPixelValue) |
|
Self & | SetInterpolator (InterpolatorEnum Interpolator) |
|
Self & | SetOutputDirection (std::vector< double > OutputDirection) |
|
Self & | SetOutputOrigin (const std::vector< double > &OutputOrigin) |
|
Self & | SetOutputPixelType (PixelIDValueEnum OutputPixelType) |
| Set the output pixel type, if sitkUnknown then the input type is used. More...
|
|
Self & | SetOutputSpacing (const std::vector< double > &OutputSpacing) |
|
void | SetReferenceImage (const Image &refImage) |
|
Self & | SetSize (const std::vector< uint32_t > &Size) |
|
Self & | SetTransform (Transform Transform) |
|
std::string | ToString () const |
|
virtual | ~ResampleImageFilter () |
|
| ImageFilter () |
|
virtual | ~ImageFilter ()=0 |
|
virtual void | Abort () |
|
virtual int | AddCommand (itk::simple::EventEnum event, itk::simple::Command &cmd) |
| Add a Command Object to observer the event. More...
|
|
virtual float | GetProgress () const |
| An Active Measurement of the progress of execution. More...
|
|
virtual bool | HasCommand (itk::simple::EventEnum event) const |
| Query of this object has any registered commands for event. More...
|
|
| ProcessObject () |
|
virtual void | RemoveAllCommands () |
| Remove all registered commands. More...
|
|
virtual | ~ProcessObject () |
|
virtual void | DebugOn () |
|
virtual void | DebugOff () |
|
virtual bool | GetDebug () const |
|
virtual void | SetDebug (bool debugFlag) |
|
virtual void | SetNumberOfThreads (unsigned int n) |
|
virtual unsigned int | GetNumberOfThreads () const |
|
|
static bool | GetGlobalDefaultDebug () |
|
static void | GlobalDefaultDebugOff () |
|
static void | GlobalDefaultDebugOn () |
|
static void | SetGlobalDefaultDebug (bool debugFlag) |
|
static void | GlobalWarningDisplayOn () |
|
static void | GlobalWarningDisplayOff () |
|
static void | SetGlobalWarningDisplay (bool flag) |
|
static bool | GetGlobalWarningDisplay () |
|
static void | SetGlobalDefaultNumberOfThreads (unsigned int n) |
|
static unsigned int | GetGlobalDefaultNumberOfThreads () |
|
static double | GetGlobalDefaultCoordinateTolerance () |
| Access the global tolerance to determine congruent spaces. More...
|
|
static void | SetGlobalDefaultCoordinateTolerance (double) |
| Access the global tolerance to determine congruent spaces. More...
|
|
static double | GetGlobalDefaultDirectionTolerance () |
| Access the global tolerance to determine congruent spaces. More...
|
|
static void | SetGlobalDefaultDirectionTolerance (double) |
| Access the global tolerance to determine congruent spaces. More...
|
|
virtual unsigned long | AddITKObserver (const itk::EventObject &, itk::Command *) |
|
virtual itk::ProcessObject * | GetActiveProcess () |
|
virtual void | OnActiveProcessDelete () |
|
virtual void | onCommandDelete (const itk::simple::Command *cmd) SITK_NOEXCEPT |
|
virtual void | PreUpdate (itk::ProcessObject *p) |
|
virtual void | RemoveITKObserver (EventCommand &e) |
|
| NonCopyable () |
|
static void | FixNonZeroIndex (TImageType *img) |
|
template<class TImageType > |
static TImageType::ConstPointer | CastImageToITK (const Image &img) |
|
template<class TImageType > |
static Image | CastITKToImage (TImageType *img) |
|
template<class TPixelType , unsigned int VImageDimension, unsigned int VLength, template< typename, unsigned int > class TVector> |
static Image | CastITKToImage (itk::Image< TVector< TPixelType, VLength >, VImageDimension > *img) |
|
static const itk::EventObject & | GetITKEventObject (EventEnum e) |
|
template<typename T > |
static std::ostream & | ToStringHelper (std::ostream &os, const T &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const char &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const signed char &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const unsigned char &v) |
|
Resample an image via a coordinate transform.
ResampleImageFilter resamples an existing image through some coordinate transform, interpolating via some image function. The class is templated over the types of the input and output images.
Note that the choice of interpolator function can be important. This function is set via SetInterpolator() . The default is LinearInterpolateImageFunction <InputImageType, TInterpolatorPrecisionType>, which is reasonable for ordinary medical images. However, some synthetic images have pixels drawn from a finite prescribed set. An example would be a mask indicating the segmentation of a brain into a small number of tissue types. For such an image, one does not want to interpolate between different pixel values, and so NearestNeighborInterpolateImageFunction < InputImageType, TCoordRep > would be a better choice.
If an sample is taken from outside the image domain, the default behavior is to use a default pixel value. If different behavior is desired, an extrapolator function can be set with SetExtrapolator() .
Output information (spacing, size and direction) for the output image should be set. This information has the normal defaults of unit spacing, zero origin and identity direction. Optionally, the output information can be obtained from a reference image. If the reference image is provided and UseReferenceImage is On, then the spacing, origin and direction of the reference image will be used.
Since this filter produces an image which is a different size than its input, it needs to override several of the methods defined in ProcessObject in order to properly manage the pipeline execution model. In particular, this filter overrides ProcessObject::GenerateInputRequestedRegion() and ProcessObject::GenerateOutputInformation() .
This filter is implemented as a multithreaded filter. It provides a ThreadedGenerateData() method for its implementation.
- Warning
- For multithreading, the TransformPoint method of the user-designated coordinate transform must be threadsafe.
- See also
- itk::ResampleImageFilter for the Doxygen on the original ITK class.
Definition at line 53 of file sitkResampleImageFilter.h.