VTK  9.1.0
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=========================================================================*/
46#ifndef vtkImageAccumulate_h
47#define vtkImageAccumulate_h
48
49#include "vtkImageAlgorithm.h"
50#include "vtkImagingStatisticsModule.h" // For export macro
51
53
54class VTKIMAGINGSTATISTICS_EXPORT vtkImageAccumulate : public vtkImageAlgorithm
55{
56public:
59 void PrintSelf(ostream& os, vtkIndent indent) override;
60
62
71 vtkSetVector3Macro(ComponentSpacing, double);
72 vtkGetVector3Macro(ComponentSpacing, double);
74
76
85 vtkSetVector3Macro(ComponentOrigin, double);
86 vtkGetVector3Macro(ComponentOrigin, double);
88
90
99 void SetComponentExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ);
101 int* GetComponentExtent() VTK_SIZEHINT(6) { return this->ComponentExtent; }
103
105
114
116
119 vtkSetClampMacro(ReverseStencil, vtkTypeBool, 0, 1);
120 vtkBooleanMacro(ReverseStencil, vtkTypeBool);
121 vtkGetMacro(ReverseStencil, vtkTypeBool);
123
125
130 vtkGetVector3Macro(Min, double);
131 vtkGetVector3Macro(Max, double);
132 vtkGetVector3Macro(Mean, double);
133 vtkGetVector3Macro(StandardDeviation, double);
134 vtkGetMacro(VoxelCount, vtkIdType);
136
138
141 vtkSetClampMacro(IgnoreZero, vtkTypeBool, 0, 1);
142 vtkGetMacro(IgnoreZero, vtkTypeBool);
143 vtkBooleanMacro(IgnoreZero, vtkTypeBool);
145
146protected:
149
150 double ComponentSpacing[3];
151 double ComponentOrigin[3];
152 int ComponentExtent[6];
153
157 vtkInformationVector* outputVector) override;
158
160 double Min[3];
161 double Max[3];
162 double Mean[3];
163 double StandardDeviation[3];
165
167
169
170private:
171 vtkImageAccumulate(const vtkImageAccumulate&) = delete;
172 void operator=(const vtkImageAccumulate&) = delete;
173};
174
175#endif
Generalized histograms up to 3 dimensions.
void SetStencilData(vtkImageStencilData *stencil)
Use a stencil to specify which voxels to accumulate.
~vtkImageAccumulate() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetComponentExtent(int extent[6])
Set/Get - The component extent sets the number/extent of the bins.
vtkImageStencilData * GetStencil()
Use a stencil to specify which voxels to accumulate.
void SetComponentExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
Set/Get - The component extent sets the number/extent of the bins.
static vtkImageAccumulate * New()
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
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.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetComponentExtent(int extent[6])
Set/Get - The component extent sets the number/extent of the bins.
Generic algorithm superclass for image algs.
efficient description of an image stencil
a simple class to control print indentation
Definition: vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ extent
Definition: vtkX3D.h:351
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:332
#define VTK_SIZEHINT(...)