Section: Visualization Toolkit Imaging Classes
To create an instance of class vtkImageMask, simply invoke its constructor as follows
obj = vtkImageMask
obj
is an instance of the vtkImageMask class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkImageMask = obj.NewInstance ()
vtkImageMask = obj.SafeDownCast (vtkObject o)
obj.SetMaskedOutputValue (int num, double v)
- SetGet the value of the output pixel replaced by mask.
obj.SetMaskedOutputValue (double v)
- SetGet the value of the output pixel replaced by mask.
obj.SetMaskedOutputValue (double v1, double v2)
- SetGet the value of the output pixel replaced by mask.
obj.SetMaskedOutputValue (double v1, double v2, double v3)
- SetGet the value of the output pixel replaced by mask.
int = obj.GetMaskedOutputValueLength ()
- Set/Get the alpha blending value for the mask
The input image is assumed to be at alpha = 1.0
and the mask image uses this alpha to blend using
an over operator.
obj.SetMaskAlpha (double )
- Set/Get the alpha blending value for the mask
The input image is assumed to be at alpha = 1.0
and the mask image uses this alpha to blend using
an over operator.
double = obj.GetMaskAlphaMinValue ()
- Set/Get the alpha blending value for the mask
The input image is assumed to be at alpha = 1.0
and the mask image uses this alpha to blend using
an over operator.
double = obj.GetMaskAlphaMaxValue ()
- Set/Get the alpha blending value for the mask
The input image is assumed to be at alpha = 1.0
and the mask image uses this alpha to blend using
an over operator.
double = obj.GetMaskAlpha ()
- Set/Get the alpha blending value for the mask
The input image is assumed to be at alpha = 1.0
and the mask image uses this alpha to blend using
an over operator.
obj.SetImageInput (vtkImageData in)
- Set the input to be masked.
obj.SetMaskInput (vtkImageData in)
- Set the mask to be used.
obj.SetNotMask (int )
- When Not Mask is on, the mask is passed through a boolean not
before it is used to mask the image. The effect is to pass the
pixels where the input mask is zero, and replace the pixels
where the input value is non zero.
int = obj.GetNotMask ()
- When Not Mask is on, the mask is passed through a boolean not
before it is used to mask the image. The effect is to pass the
pixels where the input mask is zero, and replace the pixels
where the input value is non zero.
obj.NotMaskOn ()
- When Not Mask is on, the mask is passed through a boolean not
before it is used to mask the image. The effect is to pass the
pixels where the input mask is zero, and replace the pixels
where the input value is non zero.
obj.NotMaskOff ()
- When Not Mask is on, the mask is passed through a boolean not
before it is used to mask the image. The effect is to pass the
pixels where the input mask is zero, and replace the pixels
where the input value is non zero.
obj.SetInput1 (vtkDataObject in)
- Set the two inputs to this filter
obj.SetInput2 (vtkDataObject in)