|
| | mitkClassMacro (ExtractSliceFilter, ImageToImageFilter) |
| |
| Pointer | Clone () const |
| |
| | mitkNewMacro1Param (Self, vtkImageReslice *) |
| |
| void | SetWorldGeometry (const PlaneGeometry *geometry) |
| | Set the plane geometry defining the reslice axis. More...
|
| |
| void | SetTimeStep (unsigned int timestep) |
| | Set the time step in the 4D volume. More...
|
| |
| unsigned int | GetTimeStep () |
| | Get the current time step. More...
|
| |
| void | SetComponent (unsigned int component) |
| | Set the component of a multi-component image to be extracted. More...
|
| |
| void | SetResliceTransformByGeometry (const BaseGeometry *transform) |
| | Set a transform for the reslice axes. More...
|
| |
| void | SetInPlaneResampleExtentByGeometry (bool inPlaneResampleExtentByGeometry) |
| | Set whether the resampling grid is derived from image or world geometry. More...
|
| |
| void | SetOutputDimensionality (unsigned int dimension) |
| | Set the output dimensionality of the slice. More...
|
| |
| void | SetOutputSpacingZDirection (double zSpacing) |
| | Set the spacing in z direction manually. More...
|
| |
| void | SetOutputExtentZDirection (int zMin, int zMax) |
| | Set the extent in pixels for the z direction manually. More...
|
| |
| bool | GetClippedPlaneBounds (double bounds[6]) |
| | Get the bounding box of the slice [xMin, xMax, yMin, yMax, zMin, zMax]. More...
|
| |
| bool | GetClippedPlaneBounds (const BaseGeometry *boundingGeometry, const PlaneGeometry *planeGeometry, double *bounds) |
| | Get the bounding box of the slice [xMin, xMax, yMin, yMax, zMin, zMax]. More...
|
| |
| mitk::ScalarType * | GetOutputSpacing () |
| | Get the spacing of the slice. More...
|
| |
| vtkImageData * | GetVtkOutput () |
| | Get the output as vtkImageData. More...
|
| |
| void | SetVtkOutputRequest (bool isRequested) |
| | Set VtkOutputRequest to suppress the conversion of the image. More...
|
| |
| vtkMatrix4x4 * | GetResliceAxes () |
| | Get the reslice axes matrix. More...
|
| |
| void | SetBackgroundLevel (double backgroundLevel) |
| | Set the background level for areas outside the volume. More...
|
| |
| void | SetInterpolationMode (ExtractSliceFilter::ResliceInterpolation interpolation) |
| | Set the interpolation mode for reslicing. More...
|
| |
| | mitkClassMacro (ImageToImageFilter, ImageSource) |
| |
| Pointer | Clone () const |
| |
| virtual void | SetInput (const InputImageType *image) |
| | Set the image input of this process object. More...
|
| |
| virtual void | SetInput (unsigned int idx, const InputImageType *image) |
| | Set the image input at the specified index. More...
|
| |
| InputImageType * | GetInput (void) |
| | Get the input image (non-const). More...
|
| |
| InputImageType * | GetInput (unsigned int idx) |
| | Get the input image at the specified index (non-const). More...
|
| |
| const InputImageType * | GetInput (void) const |
| | Get the input image (const). More...
|
| |
| const InputImageType * | GetInput (unsigned int idx) const |
| | Get the input image at the specified index (const). More...
|
| |
| | mitkClassMacro (ImageSource, BaseDataSource) |
| |
| Pointer | Clone () const |
| |
| mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
| | Get the output data of this image source object. More...
|
| |
| itk::DataObject::Pointer | MakeOutput (const DataObjectIdentifierType &name) override |
| |
| virtual vtkImageData * | GetVtkImageData () |
| | Get the output as VTK image data (non-const version). More...
|
| |
| virtual const vtkImageData * | GetVtkImageData () const |
| | Get the output as VTK image data (const version). More...
|
| |
| | mitkClassMacroItkParent (BaseDataSource, itk::ProcessObject) |
| |
| OutputType * | GetOutput () |
| |
| const OutputType * | GetOutput () const |
| |
| OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
| |
| const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
| |
| virtual void | GraftOutput (OutputType *output) |
| | Graft the specified BaseData onto this BaseDataSource's output. More...
|
| |
| virtual void | GraftOutput (const DataObjectIdentifierType &key, OutputType *output) |
| | Graft the specified base data object onto a named output. More...
|
| |
| virtual void | GraftNthOutput (unsigned int idx, OutputType *output) |
| | Graft the specified base data object onto this BaseDataSource's idx'th output. More...
|
| |
| bool | Updating () const |
| | Check whether the pipeline is currently executing. More...
|
| |
|
| | ExtractSliceFilter (vtkImageReslice *reslicer=nullptr) |
| | Constructor. More...
|
| |
| | ~ExtractSliceFilter () override |
| | Destructor. More...
|
| |
| void | GenerateData () override |
| | Perform the actual reslicing. More...
|
| |
| void | GenerateOutputInformation () override |
| | Compute output information (spacing, origin, extent) based on input and world geometry. More...
|
| |
| void | GenerateInputRequestedRegion () override |
| | Set the requested region on the input image. More...
|
| |
| | ImageToImageFilter () |
| |
| | ~ImageToImageFilter () override |
| |
| void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
| | Print self information to the given stream. More...
|
| |
| void | GenerateInputRequestedRegion () override |
| | Determine the input requested region to produce the output requested region. More...
|
| |
| | ImageSource () |
| |
| | ~ImageSource () override |
| |
| void | GenerateData () override |
| | A version of GenerateData() specific for image processing filters. More...
|
| |
| virtual void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) |
| | If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData(). More...
|
| |
| void | PrepareOutputs () override |
| | This method is intentionally left blank. More...
|
| |
| virtual void | AllocateOutputs () |
| | The GenerateData method normally allocates the buffers for all of the outputs of a filter. More...
|
| |
| virtual void | BeforeThreadedGenerateData () |
| | If an imaging filter needs to perform processing after the buffer has been allocated but before threads are spawned, the filter can provide an implementation for BeforeThreadedGenerateData(). More...
|
| |
| virtual void | AfterThreadedGenerateData () |
| | If an imaging filter needs to perform processing after all processing threads have completed, the filter can provide an implementation for AfterThreadedGenerateData(). More...
|
| |
| virtual unsigned int | SplitRequestedRegion (unsigned int i, unsigned int num, OutputImageRegionType &splitRegion) |
| | Split the output's RequestedRegion into "num" pieces, returning region "i" as "splitRegion". More...
|
| |
| | BaseDataSource () |
| | Constructor. More...
|
| |
| | ~BaseDataSource () override |
| | Destructor. More...
|
| |
ExtractSliceFilter extracts a 2D arbitrary oriented slice from a 3D volume.
The filter can reslice in all orthogonal planes such as sagittal, coronal and axial, and is also able to reslice an arbitrary oriented oblique plane. Curved planes are specified via an AbstractTransformGeometry as the input worldgeometry.
Additionally the filter extracts the specified component of a multi-component input image. This is done only if the caller requests an mitk::Image output ('m_VtkOutputRequested' set to false). The default component to be extracted is '0'.
The convenient workflow is:
- Set an image as input.
- Set the worldPlaneGeometry. This defines a grid where the slice is being extracted
- And then start the pipeline.
There are a few more properties that can be set to modify the behavior of the slicing. The properties are:
- interpolation mode either Nearestneighbor, Linear or Cubic.
- a transform this is a convenient way to adapt the reslice axis for the case that the image is transformed e.g. rotated.
- time step the time step in a times volume.
- the component to extract from a multi-component input image
- vtkoutputrequested, to define whether an mitk::image should be initialized
- resample by geometry whether the resampling grid corresponds to the specs of the worldgeometry or is directly derived from the input image
By default the properties are set to:
- interpolation mode Nearestneighbor.
- a transform nullptr (No transform is set).
- time step 0.
- component 0.
- resample by geometry false (Corresponds to input image).
Definition at line 63 of file mitkExtractSliceFilter.h.