VTK: Imaging/Morphological/vtkImageSkeleton2D.h Source File

| VTK 9.3.1

vtkImageSkeleton2D.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
21 #ifndef vtkImageSkeleton2D_h
22 #define vtkImageSkeleton2D_h
23
24 #include "vtkImageIterateFilter.h"
25 #include "vtkImagingMorphologicalModule.h" // For export macro
26
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSkeleton2D : public vtkImageIterateFilter
29 {
30 public:
31 static vtkImageSkeleton2D* New();
32 vtkTypeMacro(vtkImageSkeleton2D, vtkImageIterateFilter);
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
36
39 vtkSetMacro(Prune, vtkTypeBool);
40 vtkGetMacro(Prune, vtkTypeBool);
41 vtkBooleanMacro(Prune, vtkTypeBool);
43
47 void SetNumberOfIterations(int num) override;
48
49 protected:
50 vtkImageSkeleton2D();
51 ~vtkImageSkeleton2D() override = default;
52
53 vtkTypeBool Prune;
54
55 int IterativeRequestUpdateExtent(vtkInformation* in, vtkInformation* out) override;
56 void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
57 vtkInformationVector* outputVector, vtkImageData*** inDataV, vtkImageData** outDataV,
58 int outExt[6], int id) override;
59
60 private:
61 vtkImageSkeleton2D(const vtkImageSkeleton2D&) = delete;
62 void operator=(const vtkImageSkeleton2D&) = delete;
63 };
64
65 VTK_ABI_NAMESPACE_END
66 #endif
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
vtkImageIterateFilter
Multiple executes per update.
Definition: vtkImageIterateFilter.h:26
vtkImageSkeleton2D
Skeleton of 2D images.
Definition: vtkImageSkeleton2D.h:29
vtkImageSkeleton2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageSkeleton2D::New
static vtkImageSkeleton2D * New()
vtkImageSkeleton2D::SetNumberOfIterations
void SetNumberOfIterations(int num) override
Sets the number of cycles in the erosion.
vtkImageSkeleton2D::Prune
vtkTypeBool Prune
Definition: vtkImageSkeleton2D.h:53
vtkImageSkeleton2D::~vtkImageSkeleton2D
~vtkImageSkeleton2D() override=default
vtkImageSkeleton2D::vtkImageSkeleton2D
vtkImageSkeleton2D()
vtkImageSkeleton2D::ThreadedRequestData
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inDataV, vtkImageData **outDataV, int outExt[6], int id) override
If the subclass does not define an Execute method, then the task will be broken up,...
vtkImageSkeleton2D::IterativeRequestUpdateExtent
int IterativeRequestUpdateExtent(vtkInformation *in, vtkInformation *out) override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkImageIterateFilter.h