Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
vtkITKNewOtsuThresholdImageFilter.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8  Program: 3D Slicer
9  Module: $RCSfile: vtkITKNewOtsuThresholdImageFilter.h,v $
10  Date: $Date: 2006/03/16 20:00:18 $
11  Version: $Revision: 1.1.2.1 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkITKNewOtsuThresholdImageFilter_h
16 #define __vtkITKNewOtsuThresholdImageFilter_h
17 
18 #include "vtkITK.h"
19 
22 #include "vtkObjectFactory.h"
23 
27 {
28 public:
31 
32  void SetNumberOfHistogramBins( unsigned long value)
33  {
34  DelegateITKInputMacro ( SetNumberOfHistogramBins, value );
35  };
36  unsigned long GetNumberOfHistogramBins ()
37  { DelegateITKOutputMacro ( GetNumberOfHistogramBins ); };
38 
39  void SetOmega (double value)
40  {
41  DelegateITKInputMacro( SetOmega, value);
42  };
43 
44  double GetOmega()
45  {
46  DelegateITKOutputMacro( GetOmega );
47  };
48 
49  void SetInsideValue (short value)
50  {
51  OutputImagePixelType d = static_cast<OutputImagePixelType> ( value );
52  DelegateITKInputMacro (SetInsideValue,d);
53  }
54 
55  void SetOutsideValue (short value)
56  {
57  OutputImagePixelType d = static_cast<OutputImagePixelType> ( value );
58  DelegateITKInputMacro (SetOutsideValue,d);
59  }
60 
61  short GetInsideValue ()
62  { DelegateITKOutputMacro ( GetInsideValue ); };
63 
64  short GetOutsideValue ()
65  { DelegateITKOutputMacro ( GetOutsideValue ); };
66 
67  short GetThreshold()
68  { DelegateITKOutputMacro ( GetThreshold ); };
69 
70 protected:
72  vtkITKNewOtsuThresholdImageFilter() : Superclass ( ImageFilterType::New() ){};
74  ImageFilterType* GetImageFilterPointer() { return dynamic_cast<ImageFilterType*> ( m_Filter.GetPointer() ); }
75 
76 private:
78  void operator=(const vtkITKNewOtsuThresholdImageFilter&);
79 };
80 
81 //vtkStandardNewMacro(vtkITKNewOtsuThresholdImageFilter);
82 
83 #endif
84 
85 
86 
87 
Threshold an image using the Otsu Threshold.
Wrapper class around itk::NewOtsuThresholdImageFilter.
#define DelegateITKInputMacro(name, arg)
Definition: vtkITKUtility.h:65
itk::NewOtsuThresholdImageFilter< Superclass::InputImageType, Superclass::OutputImageType > ImageFilterType
#define DelegateITKOutputMacro(name)
Definition: vtkITKUtility.h:77
static vtkITKImageToImageFilterSS * New()