Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkBinaryLabelmapToClosedSurfaceConversionRule.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
4  Queen's University, Kingston, ON, Canada. All Rights Reserved.
5 
6  See COPYRIGHT.txt
7  or http://www.slicer.org/copyright/copyright.txt for details.
8 
9  Unless required by applicable law or agreed to in writing, software
10  distributed under the License is distributed on an "AS IS" BASIS,
11  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  See the License for the specific language governing permissions and
13  limitations under the License.
14 
15  This file was originally developed by Csaba Pinter, PerkLab, Queen's University
16  and was supported through the Applied Cancer Research Unit program of Cancer Care
17  Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
18 
19 ==============================================================================*/
20 
21 #ifndef __vtkBinaryLabelmapToClosedSurfaceConversionRule_h
22 #define __vtkBinaryLabelmapToClosedSurfaceConversionRule_h
23 
24 // SegmentationCore includes
27 
28 #include "vtkSegmentationCoreConfigure.h"
29 
35 class vtkSegmentationCore_EXPORT vtkBinaryLabelmapToClosedSurfaceConversionRule
37 {
38 public:
40  static const std::string GetDecimationFactorParameterName() { return "Decimation factor"; };
42  static const std::string GetSmoothingFactorParameterName() { return "Smoothing factor"; };
44  static const std::string GetComputeSurfaceNormalsParameterName() { return "Compute surface normals"; };
45 
46 public:
49  virtual vtkSegmentationConverterRule* CreateRuleInstance() VTK_OVERRIDE;
50 
54  virtual vtkDataObject* ConstructRepresentationObjectByRepresentation(std::string representationName) VTK_OVERRIDE;
55 
59  virtual vtkDataObject* ConstructRepresentationObjectByClass(std::string className) VTK_OVERRIDE;
60 
62  virtual bool Convert(vtkDataObject* sourceRepresentation, vtkDataObject* targetRepresentation) VTK_OVERRIDE;
63 
65  virtual unsigned int GetConversionCost(vtkDataObject* sourceRepresentation=NULL, vtkDataObject* targetRepresentation=NULL) VTK_OVERRIDE;
66 
68  virtual const char* GetName() VTK_OVERRIDE { return "Binary labelmap to closed surface"; };
69 
72 
75 
76 protected:
79  bool IsLabelmapPaddingNecessary(vtkImageData* binaryLabelMap);
80 
81 protected:
85 };
86 
87 #endif // __vtkBinaryLabelmapToClosedSurfaceConversionRule_h
Convert binary labelmap representation (vtkOrientedImageData type) to closed surface representation (...
void operator=(const vtkSegmentationConverterRule &)
static const char * GetSegmentationBinaryLabelmapRepresentationName()
LRU Cache.
virtual const char * GetTargetRepresentationName() VTK_OVERRIDE
Human-readable name of the target representation.
Abstract converter rule class. Subclasses perform conversions between specific representation types...
static const char * GetSegmentationClosedSurfaceRepresentationName()
virtual const char * GetSourceRepresentationName() VTK_OVERRIDE
Human-readable name of the source representation.
virtual vtkSegmentationConverterRule * CreateRuleInstance()=0
static const std::string GetDecimationFactorParameterName()
Conversion parameter: decimation factor.
static const std::string GetSmoothingFactorParameterName()
Conversion parameter: smoothing factor.
static const std::string GetComputeSurfaceNormalsParameterName()
Conversion parameter: compute surface normals.