|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Filter for clipping an image with a PlaneGeometry. More...
#include <mitkGeometryClipImageFilter.h>


Public Member Functions | |
| mitkClassMacro (GeometryClipImageFilter, ImageToImageFilter) | |
| Pointer | Clone () const |
| void | SetClippingGeometry (const mitk::BaseGeometry *aClippingGeometry) |
| Set the clipping geometry (must be a PlaneGeometry). More... | |
| void | SetClippingGeometry (const mitk::TimeGeometry *aClippingGeometry) |
| Set the clipping geometry as a TimeGeometry. More... | |
| const mitk::BaseGeometry * | GetClippingGeometry () const |
| Get the clipping geometry for a single time step. More... | |
| const mitk::TimeGeometry * | GetClippingTimeGeometry () const |
| Get the clipping time geometry (if set). More... | |
| virtual bool | GetClipPartAboveGeometry () const |
| Get whether the part above the geometry is clipped (default: true). More... | |
| virtual void | SetClipPartAboveGeometry (bool _arg) |
| Set whether the part above or below the geometry shall be clipped (default: true). More... | |
| virtual void | ClipPartAboveGeometryOn () |
| Toggle ClipPartAboveGeometry on/off. More... | |
| virtual void | ClipPartAboveGeometryOff () |
| virtual void | SetOutsideValue (ScalarType _arg) |
| Set the value for outside (clipped) pixels (default: 0). More... | |
| virtual ScalarType | GetOutsideValue () const |
| Get the value for outside (clipped) pixels. More... | |
| virtual void | SetAutoOutsideValue (bool _arg) |
| Set whether to automatically use the pixel type minimum as outside value (default: false). More... | |
| virtual bool | GetAutoOutsideValue () const |
| Get whether the outside value is automatically determined. More... | |
| virtual void | AutoOutsideValueOn () |
| Toggle AutoOutsideValue on/off. More... | |
| virtual void | AutoOutsideValueOff () |
| virtual void | SetAutoOrientLabels (bool _arg) |
| Set whether to auto-orient labels like vtkPolyDataNormals. More... | |
| virtual bool | GetAutoOrientLabels () const |
| Get whether automatic label orientation is enabled. More... | |
| virtual void | SetLabelBothSides (bool _arg) |
| Set whether both sides of the clipping geometry are labeled (default: false). More... | |
| virtual bool | GetLabelBothSides () const |
| Get whether both sides labeling is enabled. More... | |
| virtual void | LabelBothSidesOn () |
| Toggle LabelBothSides on/off. More... | |
| virtual void | LabelBothSidesOff () |
| virtual void | SetAboveGeometryLabel (ScalarType _arg) |
| Set the label value for voxels above the clipping geometry. More... | |
| virtual ScalarType | GetAboveGeometryLabel () const |
| Get the label value for voxels above the clipping geometry. More... | |
| virtual void | SetBelowGeometryLabel (ScalarType _arg) |
| Set the label value for voxels below the clipping geometry. More... | |
| virtual ScalarType | GetBelowGeometryLabel () const |
| Get the label value for voxels below the clipping geometry. More... | |
Public Member Functions inherited from mitk::ImageToImageFilter | |
| 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... | |
Public Member Functions inherited from mitk::ImageSource | |
| 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... | |
Public Member Functions inherited from mitk::BaseDataSource | |
| 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... | |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from mitk::ImageToImageFilter | |
| static Pointer | New () |
| Method for creation through the object factory. More... | |
Static Public Member Functions inherited from mitk::ImageSource | |
| static Pointer | New () |
| Method for creation through the object factory. More... | |
Protected Member Functions | |
| GeometryClipImageFilter () | |
| ~GeometryClipImageFilter () override | |
| void | GenerateInputRequestedRegion () override |
| void | GenerateOutputInformation () override |
| void | GenerateData () override |
| template<typename TPixel , unsigned int VImageDimension> | |
| void | _InternalComputeClippedImage (itk::Image< TPixel, VImageDimension > *itkImage, mitk::GeometryClipImageFilter *geometryClipper, const mitk::PlaneGeometry *clippingPlaneGeometry) |
Protected Member Functions inherited from mitk::ImageToImageFilter | |
| 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... | |
Protected Member Functions inherited from mitk::ImageSource | |
| 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... | |
Protected Member Functions inherited from mitk::BaseDataSource | |
| BaseDataSource () | |
| Constructor. More... | |
| ~BaseDataSource () override | |
| Destructor. More... | |
Protected Attributes | |
| mitk::BaseGeometry::ConstPointer | m_ClippingGeometry |
| mitk::GeometryData::Pointer | m_ClippingGeometryData |
| mitk::TimeGeometry::ConstPointer | m_TimeClippingGeometry |
| mitk::ImageTimeSelector::Pointer | m_InputTimeSelector |
| mitk::ImageTimeSelector::Pointer | m_OutputTimeSelector |
| bool | m_ClipPartAboveGeometry |
| Defines whether the part above or below the geometry shall be clipped (default: true). More... | |
| ScalarType | m_OutsideValue |
| Value for outside pixels (default: 0). Used only if m_AutoOutsideValue is false. More... | |
| bool | m_AutoOutsideValue |
| If true, the minimum of the output pixel type is used as outside value (default: false). More... | |
| bool | m_LabelBothSides |
| If true, all pixels above and below the geometry are labeled with m_AboveGeometryLabel and m_BelowGeometryLabel. More... | |
| bool | m_AutoOrientLabels |
| Orient above like vtkPolyDataNormals does with AutoOrientNormals. More... | |
| ScalarType | m_AboveGeometryLabel |
| Label value for pixels above the geometry when m_LabelBothSides is on. More... | |
| ScalarType | m_BelowGeometryLabel |
| Label value for pixels below the geometry when m_LabelBothSides is on. More... | |
| itk::TimeStamp | m_TimeOfHeaderInitialization |
| Time when header was last initialized. More... | |
Additional Inherited Members | |
Public Types inherited from mitk::ImageToImageFilter | |
| typedef Superclass::OutputImageRegionType | OutputImageRegionType |
| Superclass typedefs. More... | |
| typedef mitk::Image | InputImageType |
| Some convenient typedefs. More... | |
| typedef InputImageType::Pointer | InputImagePointer |
| typedef InputImageType::ConstPointer | InputImageConstPointer |
| typedef SlicedData::RegionType | InputImageRegionType |
Public Types inherited from mitk::ImageSource | |
| typedef mitk::Image | OutputImageType |
| Some convenient typedefs. More... | |
| typedef OutputImageType | OutputType |
| typedef OutputImageType::Pointer | OutputImagePointer |
| typedef SlicedData::RegionType | OutputImageRegionType |
Public Types inherited from mitk::BaseDataSource | |
| typedef BaseData | OutputType |
| Output data type. More... | |
| typedef itk::DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
| Identifier type for named data objects. More... | |
Static Protected Member Functions inherited from mitk::ImageSource | |
| static itk::ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
| Static function used as a "callback" by the MultiThreader. More... | |
Static Protected Member Functions inherited from mitk::BaseDataSource | |
| static Pointer | New () |
Filter for clipping an image with a PlaneGeometry.
This filter clips an image along a plane defined by a PlaneGeometry. The clipping geometry can be either a single PlaneGeometry or a TimeGeometry containing PlaneGeometry instances for multiple time steps. Pixels on one side of the plane are set to an outside value (or labeled), while pixels on the other side retain their original values.
The filter supports several modes:
Definition at line 48 of file mitkGeometryClipImageFilter.h.
|
protected |
|
overrideprotected |
|
protected |
|
virtual |
|
virtual |
Toggle AutoOutsideValue on/off.
|
virtual |
|
virtual |
Toggle ClipPartAboveGeometry on/off.
| Pointer mitk::GeometryClipImageFilter::Clone | ( | ) | const |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
virtual |
Get the label value for voxels above the clipping geometry.
|
virtual |
Get whether automatic label orientation is enabled.
|
virtual |
Get whether the outside value is automatically determined.
|
virtual |
Get the label value for voxels below the clipping geometry.
|
virtual |
Get whether the part above the geometry is clipped (default: true).
| const mitk::BaseGeometry* mitk::GeometryClipImageFilter::GetClippingGeometry | ( | ) | const |
Get the clipping geometry for a single time step.
| const mitk::TimeGeometry* mitk::GeometryClipImageFilter::GetClippingTimeGeometry | ( | ) | const |
Get the clipping time geometry (if set).
|
virtual |
Get whether both sides labeling is enabled.
|
virtual |
Get the value for outside (clipped) pixels.
|
virtual |
|
virtual |
Toggle LabelBothSides on/off.
| mitk::GeometryClipImageFilter::mitkClassMacro | ( | GeometryClipImageFilter | , |
| ImageToImageFilter | |||
| ) |
|
static |
|
virtual |
Set the label value for voxels above the clipping geometry.
Only used when LabelBothSides is true.
| [in] | _arg | The above-geometry label value. |
|
virtual |
Set whether to auto-orient labels like vtkPolyDataNormals.
| [in] | _arg | True to enable automatic label orientation. |
|
virtual |
Set whether to automatically use the pixel type minimum as outside value (default: false).
| [in] | _arg | True to use automatic outside value. |
|
virtual |
Set the label value for voxels below the clipping geometry.
Only used when LabelBothSides is true.
| [in] | _arg | The below-geometry label value. |
|
virtual |
Set whether the part above or below the geometry shall be clipped (default: true).
| [in] | _arg | True to clip above, false to clip below. |
| void mitk::GeometryClipImageFilter::SetClippingGeometry | ( | const mitk::BaseGeometry * | aClippingGeometry | ) |
Set the clipping geometry (must be a PlaneGeometry).
| [in] | aClippingGeometry | The PlaneGeometry used for clipping. |
| void mitk::GeometryClipImageFilter::SetClippingGeometry | ( | const mitk::TimeGeometry * | aClippingGeometry | ) |
Set the clipping geometry as a TimeGeometry.
The TimeGeometry must contain PlaneGeometry instances, one per time step.
| [in] | aClippingGeometry | The TimeGeometry containing PlaneGeometry instances. |
|
virtual |
Set whether both sides of the clipping geometry are labeled (default: false).
When enabled, pixels above the geometry receive AboveGeometryLabel and pixels below receive BelowGeometryLabel.
| [in] | _arg | True to label both sides. |
|
virtual |
Set the value for outside (clipped) pixels (default: 0).
Only used when AutoOutsideValue is false.
| [in] | _arg | The outside pixel value. |
|
protected |
Label value for pixels above the geometry when m_LabelBothSides is on.
Definition at line 234 of file mitkGeometryClipImageFilter.h.
|
protected |
Orient above like vtkPolyDataNormals does with AutoOrientNormals.
Definition at line 231 of file mitkGeometryClipImageFilter.h.
|
protected |
If true, the minimum of the output pixel type is used as outside value (default: false).
Definition at line 221 of file mitkGeometryClipImageFilter.h.
|
protected |
Label value for pixels below the geometry when m_LabelBothSides is on.
Definition at line 237 of file mitkGeometryClipImageFilter.h.
|
protected |
Defines whether the part above or below the geometry shall be clipped (default: true).
Definition at line 213 of file mitkGeometryClipImageFilter.h.
|
protected |
Definition at line 206 of file mitkGeometryClipImageFilter.h.
|
protected |
Definition at line 207 of file mitkGeometryClipImageFilter.h.
|
protected |
Definition at line 209 of file mitkGeometryClipImageFilter.h.
|
protected |
If true, all pixels above and below the geometry are labeled with m_AboveGeometryLabel and m_BelowGeometryLabel.
Definition at line 226 of file mitkGeometryClipImageFilter.h.
|
protected |
Definition at line 210 of file mitkGeometryClipImageFilter.h.
|
protected |
Value for outside pixels (default: 0). Used only if m_AutoOutsideValue is false.
Definition at line 218 of file mitkGeometryClipImageFilter.h.
|
protected |
Definition at line 208 of file mitkGeometryClipImageFilter.h.
|
protected |
Time when header was last initialized.
Definition at line 240 of file mitkGeometryClipImageFilter.h.