|
VMTK
|
Create a box shaped sub-volume within a 3D image and paint (assign a value to) every sub-volume element with the same value. More...
#include <vtkvmtkImageBoxPainter.h>
Public Types | |
| typedef vtkSimpleImageToImageFilter | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkImageBoxPainter * | NewInstance () const |
| void | SetBoxDefinitionToUseExtent () |
| void | SetBoxDefinitionToUseBounds () |
| virtual double | GetPaintValue () |
| virtual void | SetPaintValue (double) |
| virtual double * | GetBoxBounds () |
| virtual void | GetBoxBounds (double data[6]) |
| virtual void | SetBoxBounds (double data[]) |
| virtual int * | GetBoxExtent () |
| virtual void | GetBoxExtent (int data[6]) |
| virtual void | SetBoxExtent (int data[]) |
| virtual int | GetBoxDefinition () |
| virtual void | SetBoxDefinition (int) |
Static Public Member Functions | |
| static vtkvmtkImageBoxPainter * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkImageBoxPainter * | SafeDownCast (vtkObjectBase *o) |
Protected Types | |
| enum | { USE_BOUNDS , USE_EXTENT } |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkImageBoxPainter () | |
| ~vtkvmtkImageBoxPainter () | |
| virtual void | SimpleExecute (vtkImageData *input, vtkImageData *output) override |
Protected Attributes | |
| double | PaintValue |
| double | BoxBounds [6] |
| int | BoxExtent [6] |
| int | BoxDefinition |
Create a box shaped sub-volume within a 3D image and paint (assign a value to) every sub-volume element with the same value.
This filter copies the input image and overwrites every voxel inside an axis-aligned box sub-region with PaintValue, leaving voxels outside the box unchanged. The box can be specified either as a voxel index range (BoxExtent) or as physical bounds (BoxBounds, converted to the nearest enclosed extent using the image spacing); which one is used is selected with BoxDefinition / SetBoxDefinitionToUseExtent / SetBoxDefinitionToUseBounds.
This is the filter behind the vmtkimagevoipainter pype script, typically used to blank out or flag a rectangular region of interest in an image (e.g. to mask out part of a scan before further processing).
Definition at line 39 of file vtkvmtkImageBoxPainter.h.
| typedef vtkSimpleImageToImageFilter vtkvmtkImageBoxPainter::Superclass |
Definition at line 43 of file vtkvmtkImageBoxPainter.h.
|
protected |
| Enumerator | |
|---|---|
| USE_BOUNDS | |
| USE_EXTENT | |
Definition at line 109 of file vtkvmtkImageBoxPainter.h.
|
protected |
Definition at line 32 of file vtkvmtkImageBoxPainter.cxx.
|
inlineprotected |
Definition at line 99 of file vtkvmtkImageBoxPainter.h.
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkImageBoxPainter * vtkvmtkImageBoxPainter::NewInstance | ( | ) | const |
|
virtual |
Set/Get the scalar value assigned to every voxel inside the box region. Default: 0.0.
|
virtual |
Set/Get the scalar value assigned to every voxel inside the box region. Default: 0.0.
|
virtual |
Set/Get the box region in physical (world) coordinates, as (xmin,xmax,ymin,ymax,zmin,zmax). Only used when BoxDefinition is USE_BOUNDS (see SetBoxDefinitionToUseBounds); converted internally to the nearest enclosed voxel extent using the input image spacing.
|
virtual |
Set/Get the box region in physical (world) coordinates, as (xmin,xmax,ymin,ymax,zmin,zmax). Only used when BoxDefinition is USE_BOUNDS (see SetBoxDefinitionToUseBounds); converted internally to the nearest enclosed voxel extent using the input image spacing.
|
virtual |
Set/Get the box region in physical (world) coordinates, as (xmin,xmax,ymin,ymax,zmin,zmax). Only used when BoxDefinition is USE_BOUNDS (see SetBoxDefinitionToUseBounds); converted internally to the nearest enclosed voxel extent using the input image spacing.
|
virtual |
Set/Get the box region in voxel index coordinates, as (imin,imax,jmin,jmax,kmin,kmax). Used directly when BoxDefinition is USE_EXTENT (see SetBoxDefinitionToUseExtent, the default); also holds the result of converting BoxBounds when BoxDefinition is USE_BOUNDS.
|
virtual |
Set/Get the box region in voxel index coordinates, as (imin,imax,jmin,jmax,kmin,kmax). Used directly when BoxDefinition is USE_EXTENT (see SetBoxDefinitionToUseExtent, the default); also holds the result of converting BoxBounds when BoxDefinition is USE_BOUNDS.
|
virtual |
Set/Get the box region in voxel index coordinates, as (imin,imax,jmin,jmax,kmin,kmax). Used directly when BoxDefinition is USE_EXTENT (see SetBoxDefinitionToUseExtent, the default); also holds the result of converting BoxBounds when BoxDefinition is USE_BOUNDS.
|
virtual |
Set/Get whether the painted box region is specified through BoxExtent (USE_EXTENT, the default) or through BoxBounds (USE_BOUNDS). Prefer the SetBoxDefinitionToUseExtent / SetBoxDefinitionToUseBounds convenience methods over setting this enum value directly.
|
virtual |
Set/Get whether the painted box region is specified through BoxExtent (USE_EXTENT, the default) or through BoxBounds (USE_BOUNDS). Prefer the SetBoxDefinitionToUseExtent / SetBoxDefinitionToUseBounds convenience methods over setting this enum value directly.
|
inline |
Specify the painted box region through BoxExtent (voxel index range). See BoxDefinition.
Definition at line 87 of file vtkvmtkImageBoxPainter.h.
|
inline |
Specify the painted box region through BoxBounds (physical coordinate range). See BoxDefinition.
Definition at line 93 of file vtkvmtkImageBoxPainter.h.
|
overrideprotectedvirtual |
Definition at line 87 of file vtkvmtkImageBoxPainter.cxx.
|
protected |
Definition at line 103 of file vtkvmtkImageBoxPainter.h.
|
protected |
Definition at line 104 of file vtkvmtkImageBoxPainter.h.
|
protected |
Definition at line 105 of file vtkvmtkImageBoxPainter.h.
|
protected |
Definition at line 107 of file vtkvmtkImageBoxPainter.h.