VTK
|
shift and scale an input image More...
#include <vtkImageShiftScale.h>
shift and scale an input image
With vtkImageShiftScale Pixels are shifted (a constant value added) and then scaled (multiplied by a scalar. As a convenience, this class allows you to set the output scalar type similar to vtkImageCast. This is because shift scale operations frequently convert data types.
Definition at line 37 of file vtkImageShiftScale.h.
Reimplemented from vtkThreadedImageAlgorithm.
Definition at line 41 of file vtkImageShiftScale.h.
vtkImageShiftScale::vtkImageShiftScale | ( | ) | [protected] |
vtkImageShiftScale::~vtkImageShiftScale | ( | ) | [protected] |
static vtkImageShiftScale* vtkImageShiftScale::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
static int vtkImageShiftScale::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkThreadedImageAlgorithm.
virtual int vtkImageShiftScale::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkThreadedImageAlgorithm.
static vtkImageShiftScale* vtkImageShiftScale::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkThreadedImageAlgorithm.
virtual vtkObjectBase* vtkImageShiftScale::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkThreadedImageAlgorithm.
Reimplemented from vtkThreadedImageAlgorithm.
void vtkImageShiftScale::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkThreadedImageAlgorithm.
virtual void vtkImageShiftScale::SetShift | ( | double | ) | [virtual] |
Set/Get the shift value. This value is added to each pixel
virtual double vtkImageShiftScale::GetShift | ( | ) | [virtual] |
Set/Get the shift value. This value is added to each pixel
virtual void vtkImageShiftScale::SetScale | ( | double | ) | [virtual] |
Set/Get the scale value. Each pixel is multiplied by this value.
virtual double vtkImageShiftScale::GetScale | ( | ) | [virtual] |
Set/Get the scale value. Each pixel is multiplied by this value.
virtual void vtkImageShiftScale::SetOutputScalarType | ( | int | ) | [virtual] |
Set the desired output scalar type. The result of the shift and scale operations is cast to the type specified.
virtual int vtkImageShiftScale::GetOutputScalarType | ( | ) | [virtual] |
Set the desired output scalar type. The result of the shift and scale operations is cast to the type specified.
void vtkImageShiftScale::SetOutputScalarTypeToDouble | ( | ) | [inline] |
Set the desired output scalar type. The result of the shift and scale operations is cast to the type specified.
Definition at line 61 of file vtkImageShiftScale.h.
void vtkImageShiftScale::SetOutputScalarTypeToFloat | ( | ) | [inline] |
Set the desired output scalar type. The result of the shift and scale operations is cast to the type specified.
Definition at line 63 of file vtkImageShiftScale.h.
void vtkImageShiftScale::SetOutputScalarTypeToLong | ( | ) | [inline] |
Set the desired output scalar type. The result of the shift and scale operations is cast to the type specified.
Definition at line 65 of file vtkImageShiftScale.h.
void vtkImageShiftScale::SetOutputScalarTypeToUnsignedLong | ( | ) | [inline] |
Set the desired output scalar type. The result of the shift and scale operations is cast to the type specified.
Definition at line 67 of file vtkImageShiftScale.h.
void vtkImageShiftScale::SetOutputScalarTypeToInt | ( | ) | [inline] |
Set the desired output scalar type. The result of the shift and scale operations is cast to the type specified.
Definition at line 69 of file vtkImageShiftScale.h.
void vtkImageShiftScale::SetOutputScalarTypeToUnsignedInt | ( | ) | [inline] |
Set the desired output scalar type. The result of the shift and scale operations is cast to the type specified.
Definition at line 71 of file vtkImageShiftScale.h.
void vtkImageShiftScale::SetOutputScalarTypeToShort | ( | ) | [inline] |
Set the desired output scalar type. The result of the shift and scale operations is cast to the type specified.
Definition at line 73 of file vtkImageShiftScale.h.
void vtkImageShiftScale::SetOutputScalarTypeToUnsignedShort | ( | ) | [inline] |
Set the desired output scalar type. The result of the shift and scale operations is cast to the type specified.
Definition at line 75 of file vtkImageShiftScale.h.
void vtkImageShiftScale::SetOutputScalarTypeToChar | ( | ) | [inline] |
Set the desired output scalar type. The result of the shift and scale operations is cast to the type specified.
Definition at line 77 of file vtkImageShiftScale.h.
void vtkImageShiftScale::SetOutputScalarTypeToUnsignedChar | ( | ) | [inline] |
Set the desired output scalar type. The result of the shift and scale operations is cast to the type specified.
Definition at line 79 of file vtkImageShiftScale.h.
virtual void vtkImageShiftScale::SetClampOverflow | ( | int | ) | [virtual] |
When the ClampOverflow flag is on, the data is thresholded so that the output value does not exceed the max or min of the data type. By default, ClampOverflow is off.
virtual int vtkImageShiftScale::GetClampOverflow | ( | ) | [virtual] |
When the ClampOverflow flag is on, the data is thresholded so that the output value does not exceed the max or min of the data type. By default, ClampOverflow is off.
virtual void vtkImageShiftScale::ClampOverflowOn | ( | ) | [virtual] |
When the ClampOverflow flag is on, the data is thresholded so that the output value does not exceed the max or min of the data type. By default, ClampOverflow is off.
virtual void vtkImageShiftScale::ClampOverflowOff | ( | ) | [virtual] |
When the ClampOverflow flag is on, the data is thresholded so that the output value does not exceed the max or min of the data type. By default, ClampOverflow is off.
virtual int vtkImageShiftScale::RequestInformation | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
Subclasses can reimplement this method to collect information from their inputs and set information for their outputs.
Reimplemented from vtkImageAlgorithm.
virtual void vtkImageShiftScale::ThreadedRequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector, | ||
vtkImageData *** | inData, | ||
vtkImageData ** | outData, | ||
int | extent[6], | ||
int | threadId | ||
) | [protected, virtual] |
If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method. It is public so that the thread functions can call this method.
Reimplemented from vtkThreadedImageAlgorithm.
double vtkImageShiftScale::Shift [protected] |
Definition at line 96 of file vtkImageShiftScale.h.
double vtkImageShiftScale::Scale [protected] |
Definition at line 97 of file vtkImageShiftScale.h.
int vtkImageShiftScale::OutputScalarType [protected] |
Definition at line 98 of file vtkImageShiftScale.h.
int vtkImageShiftScale::ClampOverflow [protected] |
Definition at line 99 of file vtkImageShiftScale.h.