Go to the documentation of this file.
28 #ifndef vtkImageMathematics_h
29 #define vtkImageMathematics_h
34 #define VTK_SUBTRACT 1
35 #define VTK_MULTIPLY 2
49 #define VTK_MULTIPLYBYK 16
51 #define VTK_CONJUGATE 18
52 #define VTK_COMPLEX_MULTIPLY 19
53 #define VTK_REPLACECBYK 20
55 #include "vtkImagingMathModule.h"
69 vtkSetMacro(Operation,
int);
70 vtkGetMacro(Operation,
int);
192 vtkSetMacro(ConstantK,
double);
193 vtkGetMacro(ConstantK,
double);
200 vtkSetMacro(ConstantC,
double);
201 vtkGetMacro(ConstantC,
double);
238 int extent[6],
int threadId)
override;
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
If the subclass does not define an Execute method, then the task will be broken up,...
void SetOperationToSubtract()
Set each pixel in the output image to the difference of the corresponding pixels in Input1 and Input2...
void SetOperationToAddConstant()
Set each pixel in the output image to the product of ConstantC with the corresponding pixel in Input1...
void SetOperationToMin()
Set each pixel in the output image to the minimum of the corresponding pixels in Input1 and Input2.
void SetOperationToInvert()
Set each pixel in the output image to 1 over the corresponding pixel in Input1 and Input2 (output = 1...
Generic filter that has one input.
Add, subtract, multiply, divide, invert, sin, cos, exp, log.
void SetOperationToLog()
Set each pixel in the output image to the log of the corresponding pixel in Input1.
void SetOperationToMax()
Set each pixel in the output image to the maximum of the corresponding pixels in Input1 and Input2.
void SetOperationToExp()
Set each pixel in the output image to the exponential of the corresponding pixel in Input1.
void SetInputData(vtkDataObject *)
Assign a data object as input.
void SetOperationToAdd()
Set each pixel in the output image to the sum of the corresponding pixels in Input1 and Input2.
vtkTypeBool DivideByZeroToC
void SetOperationToSquare()
Set each pixel in the output image to the square of the corresponding pixel in Input1.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetOperationToDivide()
Set each pixel in the output image to the quotient of the corresponding pixels in Input1 and Input2 (...
topologically and geometrically regular array of data
a simple class to control print indentation
void SetOperationToMultiply()
Set each pixel in the output image to the product of the corresponding pixels in Input1 and Input2.
void SetOperationToComplexMultiply()
void SetOperationToSin()
Set each pixel in the output image to the sine of the corresponding pixel in Input1.
void SetOperationToCos()
Set each pixel in the output image to the cosine of the corresponding pixel in Input1.
virtual void SetInput2Data(vtkDataObject *in)
static vtkAlgorithm * New()
void SetOperationToATAN()
Set each pixel in the output image to the arctangent of the corresponding pixel in Input1.
#define VTK_COMPLEX_MULTIPLY
void SetOperationToSquareRoot()
Set each pixel in the output image to the square root of the corresponding pixel in Input1.
virtual void SetInput1Data(vtkDataObject *in)
Set the two inputs to this filter.
void SetOperationToATAN2()
void SetOperationToReplaceCByK()
Find every pixel in Input1 that equals ConstantC and set the corresponding pixels in the Output to Co...
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetOperationToAbsoluteValue()
Set each pixel in the output image to the absolute value of the corresponding pixel in Input1.
general representation of visualization data
~vtkImageMathematics() override
void SetOperationToMultiplyByK()
Set each pixel in the output image to the product of ConstantK with the corresponding pixel in Input1...
void SetOperationToConjugate()