VTK  9.2.6
vtkImageAccumulate.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageAccumulate.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
43 #ifndef vtkImageAccumulate_h
44 #define vtkImageAccumulate_h
45 
46 #include "vtkImageAlgorithm.h"
47 #include "vtkImagingStatisticsModule.h" // For export macro
48 
50 
51 class VTKIMAGINGSTATISTICS_EXPORT vtkImageAccumulate : public vtkImageAlgorithm
52 {
53 public:
54  static vtkImageAccumulate* New();
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
68  vtkSetVector3Macro(ComponentSpacing, double);
69  vtkGetVector3Macro(ComponentSpacing, double);
71 
73 
82  vtkSetVector3Macro(ComponentOrigin, double);
83  vtkGetVector3Macro(ComponentOrigin, double);
85 
87 
95  void SetComponentExtent(int extent[6]);
96  void SetComponentExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ);
97  void GetComponentExtent(int extent[6]);
98  int* GetComponentExtent() VTK_SIZEHINT(6) { return this->ComponentExtent; }
100 
102 
108  void SetStencilData(vtkImageStencilData* stencil);
109  vtkImageStencilData* GetStencil();
111 
113 
116  vtkSetClampMacro(ReverseStencil, vtkTypeBool, 0, 1);
117  vtkBooleanMacro(ReverseStencil, vtkTypeBool);
118  vtkGetMacro(ReverseStencil, vtkTypeBool);
120 
122 
127  vtkGetVector3Macro(Min, double);
128  vtkGetVector3Macro(Max, double);
129  vtkGetVector3Macro(Mean, double);
130  vtkGetVector3Macro(StandardDeviation, double);
131  vtkGetMacro(VoxelCount, vtkIdType);
133 
135 
138  vtkSetClampMacro(IgnoreZero, vtkTypeBool, 0, 1);
139  vtkGetMacro(IgnoreZero, vtkTypeBool);
140  vtkBooleanMacro(IgnoreZero, vtkTypeBool);
142 
143 protected:
145  ~vtkImageAccumulate() override;
146 
147  double ComponentSpacing[3];
148  double ComponentOrigin[3];
149  int ComponentExtent[6];
150 
153  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
154  vtkInformationVector* outputVector) override;
155 
157  double Min[3];
158  double Max[3];
159  double Mean[3];
160  double StandardDeviation[3];
162 
164 
165  int FillInputPortInformation(int port, vtkInformation* info) override;
166 
167 private:
168  vtkImageAccumulate(const vtkImageAccumulate&) = delete;
169  void operator=(const vtkImageAccumulate&) = delete;
170 };
171 
172 #endif
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:332
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
int vtkTypeBool
Definition: vtkABI.h:69
a simple class to control print indentation
Definition: vtkIndent.h:39
efficient description of an image stencil
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
#define VTK_SIZEHINT(...)
Generalized histograms up to 3 dimensions.
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
int * GetComponentExtent()
Set/Get - The component extent sets the number/extent of the bins.