VTK  9.3.0
vtkImageShrink3D.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
17#ifndef vtkImageShrink3D_h
18#define vtkImageShrink3D_h
19
20#include "vtkImagingCoreModule.h" // For export macro
22
23VTK_ABI_NAMESPACE_BEGIN
24class VTKIMAGINGCORE_EXPORT vtkImageShrink3D : public vtkThreadedImageAlgorithm
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
32
35 vtkSetVector3Macro(ShrinkFactors, int);
36 vtkGetVector3Macro(ShrinkFactors, int);
38
40
43 vtkSetVector3Macro(Shift, int);
44 vtkGetVector3Macro(Shift, int);
46
48
56 vtkTypeBool GetAveraging() { return this->GetMean(); }
57 vtkBooleanMacro(Averaging, vtkTypeBool);
59
61 vtkGetMacro(Mean, vtkTypeBool);
62 vtkBooleanMacro(Mean, vtkTypeBool);
63
65 vtkGetMacro(Minimum, vtkTypeBool);
66 vtkBooleanMacro(Minimum, vtkTypeBool);
67
69 vtkGetMacro(Maximum, vtkTypeBool);
70 vtkBooleanMacro(Maximum, vtkTypeBool);
71
73 vtkGetMacro(Median, vtkTypeBool);
74 vtkBooleanMacro(Median, vtkTypeBool);
75
76protected:
78 ~vtkImageShrink3D() override = default;
79
80 int ShrinkFactors[3];
81 int Shift[3];
82 int Mean;
86
89
91 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData, int ext[6],
92 int id) override;
93
94 void InternalRequestUpdateExtent(int* inExt, int* outExt);
95
96private:
97 vtkImageShrink3D(const vtkImageShrink3D&) = delete;
98 void operator=(const vtkImageShrink3D&) = delete;
99};
100
101VTK_ABI_NAMESPACE_END
102#endif
topologically and geometrically regular array of data
Subsamples an image.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetAveraging(vtkTypeBool)
Choose Mean, Minimum, Maximum, Median or sub sampling.
void SetMean(vtkTypeBool)
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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
int vtkTypeBool
Definition vtkABI.h:64