Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
vtkImageMathematicsAddon.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
4 Queen's University, Kingston, ON, Canada. All Rights Reserved.
5
6 See COPYRIGHT.txt
7 or http://www.slicer.org/copyright/copyright.txt for details.
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14
15 This file was originally developed by Kyle Sunderland, PerkLab, Queen's University
16 and was supported in part through NIH grant R01 HL153166.
17
18==============================================================================*/
28
29#ifndef vtkImageMathematicsAddon_h
30#define vtkImageMathematicsAddon_h
31
32#define VTK_MULTIPLYBYSCALEDRANGE 100
33
34// VTK includes
35#include "vtkImageMathematics.h"
36
37// MRML includes
38#include "vtkMRML.h"
39
40class VTK_MRML_EXPORT vtkImageMathematicsAddon : public vtkImageMathematics
41{
42public:
43 vtkTypeMacro(vtkImageMathematicsAddon, vtkImageMathematics);
44 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
49 vtkSetVector2Macro(Range, double);
50 vtkGetVector2Macro(Range, double);
51
52protected:
55
56 int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
57
58 void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
59 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
60 int outExt[6], int threadId) override;
61
62 double Range[2] = { 0.0, 1.0 };
63
64private:
66 void operator=(const vtkImageMathematicsAddon&) = delete;
67};
68#endif
Subclass of vtkImageMathematics that adds the option to multiply an image by another image which has ...
static vtkImageMathematicsAddon * New()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(ostream &os, vtkIndent indent) override
~vtkImageMathematicsAddon() override
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int outExt[6], int threadId) override
#define VTK_MULTIPLYBYSCALEDRANGE