VTK  9.2.6
vtkImageShrink3D.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageShrink3D.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=========================================================================*/
29#ifndef vtkImageShrink3D_h
30#define vtkImageShrink3D_h
31
32#include "vtkImagingCoreModule.h" // For export macro
34
35class VTKIMAGINGCORE_EXPORT vtkImageShrink3D : public vtkThreadedImageAlgorithm
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
46 vtkSetVector3Macro(ShrinkFactors, int);
47 vtkGetVector3Macro(ShrinkFactors, int);
49
51
54 vtkSetVector3Macro(Shift, int);
55 vtkGetVector3Macro(Shift, int);
57
59
67 vtkTypeBool GetAveraging() { return this->GetMean(); }
68 vtkBooleanMacro(Averaging, vtkTypeBool);
70
72 vtkGetMacro(Mean, vtkTypeBool);
73 vtkBooleanMacro(Mean, vtkTypeBool);
74
76 vtkGetMacro(Minimum, vtkTypeBool);
77 vtkBooleanMacro(Minimum, vtkTypeBool);
78
80 vtkGetMacro(Maximum, vtkTypeBool);
81 vtkBooleanMacro(Maximum, vtkTypeBool);
82
84 vtkGetMacro(Median, vtkTypeBool);
85 vtkBooleanMacro(Median, vtkTypeBool);
86
87protected:
89 ~vtkImageShrink3D() override = default;
90
91 int ShrinkFactors[3];
92 int Shift[3];
93 int Mean;
97
100
102 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData, int ext[6],
103 int id) override;
104
105 void InternalRequestUpdateExtent(int* inExt, int* outExt);
106
107private:
108 vtkImageShrink3D(const vtkImageShrink3D&) = delete;
109 void operator=(const vtkImageShrink3D&) = delete;
110};
111
112#endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:54
Subsamples an image.
vtkTypeBool Minimum
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool Maximum
void SetAveraging(vtkTypeBool)
Choose Mean, Minimum, Maximum, Median or sub sampling.
void SetMean(vtkTypeBool)
vtkTypeBool Median
void SetMinimum(vtkTypeBool)
~vtkImageShrink3D() override=default
static vtkImageShrink3D * New()
vtkTypeBool GetAveraging()
Choose Mean, Minimum, Maximum, Median or sub sampling.
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int ext[6], int id) override
If the subclass does not define an Execute method, then the task will be broken up,...
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetMedian(vtkTypeBool)
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
void SetMaximum(vtkTypeBool)
void InternalRequestUpdateExtent(int *inExt, int *outExt)
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
int vtkTypeBool
Definition: vtkABI.h:69