VTK
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 "vtkImagingStatisticsModule.h" // For export macro
47 #include "vtkImageAlgorithm.h"
48 
50 
51 class VTKIMAGINGSTATISTICS_EXPORT vtkImageAccumulate : public vtkImageAlgorithm
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent);
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,
97  int minZ, int maxZ);
98  void GetComponentExtent(int extent[6]);
99  int *GetComponentExtent() {return this->ComponentExtent;}
101 
102 
104 
113 
115 
118  vtkSetClampMacro(ReverseStencil, int, 0, 1);
119  vtkBooleanMacro(ReverseStencil, int);
120  vtkGetMacro(ReverseStencil, int);
122 
124 
129  vtkGetVector3Macro(Min, double);
130  vtkGetVector3Macro(Max, double);
131  vtkGetVector3Macro(Mean, double);
132  vtkGetVector3Macro(StandardDeviation, double);
133  vtkGetMacro(VoxelCount, vtkIdType);
135 
137 
140  vtkSetClampMacro(IgnoreZero, int, 0, 1);
141  vtkGetMacro(IgnoreZero, int);
142  vtkBooleanMacro(IgnoreZero, int);
144 
145 protected:
148 
149  double ComponentSpacing[3];
150  double ComponentOrigin[3];
151  int ComponentExtent[6];
152 
159  virtual int RequestData(vtkInformation* request,
160  vtkInformationVector** inputVector,
161  vtkInformationVector* outputVector);
162 
164  double Min[3];
165  double Max[3];
166  double Mean[3];
167  double StandardDeviation[3];
169 
171 
173 
174 private:
175  vtkImageAccumulate(const vtkImageAccumulate&) VTK_DELETE_FUNCTION;
176  void operator=(const vtkImageAccumulate&) VTK_DELETE_FUNCTION;
177 };
178 
179 #endif
180 
181 
182 
vtkImageAccumulate::New
static vtkImageAccumulate * New()
vtkImageAccumulate::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkImageAccumulate::SetComponentExtent
void SetComponentExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
vtkImageAccumulate::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkImageAlgorithm.h
vtkImageAccumulate::SetComponentExtent
void SetComponentExtent(int extent[6])
Set/Get - The component extent sets the number/extent of the bins.
vtkImageAccumulate::ReverseStencil
int ReverseStencil
Definition: vtkImageAccumulate.h:170
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:41
vtkImageAccumulate::VoxelCount
vtkIdType VoxelCount
Definition: vtkImageAccumulate.h:168
vtkImageAccumulate::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkImageAccumulate::IgnoreZero
int IgnoreZero
Definition: vtkImageAccumulate.h:163
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkImageAccumulate::~vtkImageAccumulate
~vtkImageAccumulate()
vtkImageAccumulate::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImageAccumulate::SetStencilData
void SetStencilData(vtkImageStencilData *stencil)
Use a stencil to specify which voxels to accumulate.
vtkImageAccumulate::GetStencil
vtkImageStencilData * GetStencil()
vtkImageAccumulate
Generalized histograms up to 3 dimensions.
Definition: vtkImageAccumulate.h:52
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkImageAccumulate::GetComponentExtent
int * GetComponentExtent()
Definition: vtkImageAccumulate.h:99
vtkImageStencilData
efficient description of an image stencil
Definition: vtkImageStencilData.h:38
vtkImageAccumulate::GetComponentExtent
void GetComponentExtent(int extent[6])
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
vtkImageAccumulate::vtkImageAccumulate
vtkImageAccumulate()
vtkImageAccumulate::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.