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 =========================================================================*/
146 #ifndef vtkImageAccumulate_h
147 #define vtkImageAccumulate_h
148 
149 #include "vtkImageAlgorithm.h"
150 #include "vtkImagingStatisticsModule.h" // For export macro
151 
152 class vtkImageStencilData;
153 
154 class VTKIMAGINGSTATISTICS_EXPORT vtkImageAccumulate : public vtkImageAlgorithm
155 {
156 public:
159  void PrintSelf(ostream& os, vtkIndent indent) override;
160 
162 
171  vtkSetVector3Macro(ComponentSpacing, double);
172  vtkGetVector3Macro(ComponentSpacing, double);
174 
176 
185  vtkSetVector3Macro(ComponentOrigin, double);
186  vtkGetVector3Macro(ComponentOrigin, double);
188 
190 
199  void SetComponentExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ);
201  int* GetComponentExtent() VTK_SIZEHINT(6) { return this->ComponentExtent; }
203 
205 
214 
216 
219  vtkSetClampMacro(ReverseStencil, vtkTypeBool, 0, 1);
220  vtkBooleanMacro(ReverseStencil, vtkTypeBool);
221  vtkGetMacro(ReverseStencil, vtkTypeBool);
223 
225 
230  vtkGetVector3Macro(Min, double);
231  vtkGetVector3Macro(Max, double);
232  vtkGetVector3Macro(Mean, double);
233  vtkGetVector3Macro(StandardDeviation, double);
234  vtkGetMacro(VoxelCount, vtkIdType);
236 
238 
241  vtkSetClampMacro(IgnoreZero, vtkTypeBool, 0, 1);
242  vtkGetMacro(IgnoreZero, vtkTypeBool);
243  vtkBooleanMacro(IgnoreZero, vtkTypeBool);
245 
246 protected:
249 
250  double ComponentSpacing[3];
251  double ComponentOrigin[3];
252  int ComponentExtent[6];
253 
256  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
257  vtkInformationVector* outputVector) override;
258 
260  double Min[3];
261  double Max[3];
262  double Mean[3];
263  double StandardDeviation[3];
265 
267 
269 
270 private:
271  vtkImageAccumulate(const vtkImageAccumulate&) = delete;
272  void operator=(const vtkImageAccumulate&) = delete;
273 };
274 
275 #endif
vtkImageAccumulate::New
static vtkImageAccumulate * New()
vtkImageAccumulate::IgnoreZero
vtkTypeBool IgnoreZero
Definition: vtkImageAccumulate.h:259
vtkImageAccumulate::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType
int vtkIdType
Definition: vtkType.h:332
vtkImageAccumulate::SetComponentExtent
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.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkImageAlgorithm.h
vtkImageAccumulate::SetComponentExtent
void SetComponentExtent(int extent[6])
Set/Get - The component extent sets the number/extent of the bins.
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:57
vtkImageAccumulate::VoxelCount
vtkIdType VoxelCount
Definition: vtkImageAccumulate.h:264
vtkX3D::port
@ port
Definition: vtkX3D.h:453
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition: vtkWrappingHints.h:48
vtkImageAccumulate::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkImageAccumulate::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
vtkImageAccumulate::SetStencilData
void SetStencilData(vtkImageStencilData *stencil)
Use a stencil to specify which voxels to accumulate.
vtkImageAccumulate::GetStencil
vtkImageStencilData * GetStencil()
Use a stencil to specify which voxels to accumulate.
vtkImageAccumulate
Generalized histograms up to 3 dimensions.
Definition: vtkImageAccumulate.h:155
vtkImageAccumulate::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkImageAccumulate::GetComponentExtent
int * GetComponentExtent()
Set/Get - The component extent sets the number/extent of the bins.
Definition: vtkImageAccumulate.h:201
vtkImageAccumulate::~vtkImageAccumulate
~vtkImageAccumulate() override
vtkImageStencilData
efficient description of an image stencil
Definition: vtkImageStencilData.h:53
vtkImageAccumulate::GetComponentExtent
void GetComponentExtent(int extent[6])
Set/Get - The component extent sets the number/extent of the bins.
vtkImageAccumulate::ReverseStencil
vtkTypeBool ReverseStencil
Definition: vtkImageAccumulate.h:266
vtkX3D::extent
@ extent
Definition: vtkX3D.h:351
vtkImageAccumulate::vtkImageAccumulate
vtkImageAccumulate()
vtkImageAccumulate::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69