Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkFractionalLabelmapToClosedSurfaceConversionRule.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 Kyle Sunderland, 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 __vtkFractionalLabelmapToClosedSurfaceConversionRule_h
22 #define __vtkFractionalLabelmapToClosedSurfaceConversionRule_h
23 
24 // SegmentationCore includes
27 #include "vtkSegmentationCoreConfigure.h"
28 
36 {
37 public:
39  static const std::string GetFractionalLabelMapOversamplingFactorParameterName() { return "Fractional labelmap oversampling factor"; };
40  static const std::string GetThresholdFractionParameterName() { return "Threshold fraction"; };
41 
42 public:
45  virtual vtkSegmentationConverterRule* CreateRuleInstance() VTK_OVERRIDE;
46 
50  virtual vtkDataObject* ConstructRepresentationObjectByRepresentation(std::string representationName) VTK_OVERRIDE;
51 
55  virtual vtkDataObject* ConstructRepresentationObjectByClass(std::string className) VTK_OVERRIDE;
56 
58  virtual bool Convert(vtkDataObject* sourceRepresentation, vtkDataObject* targetRepresentation) VTK_OVERRIDE;
59 
61  virtual unsigned int GetConversionCost(vtkDataObject* sourceRepresentation=NULL, vtkDataObject* targetRepresentation=NULL) VTK_OVERRIDE;
62 
64  virtual const char* GetName() VTK_OVERRIDE { return "Fractional labelmap to closed surface"; };
65 
68 
71 
72 protected:
76  void PadLabelmap(vtkOrientedImageData* fractionalLabelMap, double paddingConstant);
77 
78 protected:
82 };
83 
84 #endif // __vtkFractionalLabelmapToClosedSurfaceConversionRule_h
virtual vtkSegmentationConverterRule * CreateRuleInstance() VTK_OVERRIDE
Convert binary labelmap representation (vtkOrientedImageData type) to closed surface representation (...
Convert Fractional labelmap representation (vtkOrientedImageData type) to closed surface representati...
static vtkBinaryLabelmapToClosedSurfaceConversionRule * New()
void operator=(const vtkBinaryLabelmapToClosedSurfaceConversionRule &)
LRU Cache.
Abstract converter rule class. Subclasses perform conversions between specific representation types...
Image data containing orientation information.
static const char * GetSegmentationClosedSurfaceRepresentationName()
virtual const char * GetTargetRepresentationName() VTK_OVERRIDE
Human-readable name of the target representation.
static const char * GetSegmentationFractionalLabelmapRepresentationName()
static const std::string GetFractionalLabelMapOversamplingFactorParameterName()
Conversion parameter: magnification factor.
virtual const char * GetSourceRepresentationName() VTK_OVERRIDE
Human-readable name of the source representation.