-// -------------------------------------------------------------------------
-/* TODO
- namespace cpPlugins
- {
- namespace Plugins
- {
- cpPlugins_Image_Demangle_Methods_Code_Only_Scalars(
- OtsuThresholdImageFilter, _DemangleInput
- );
- }
- }
-
- // -------------------------------------------------------------------------
- template< class I >
- std::string cpPlugins::Plugins::OtsuThresholdImageFilter::
- _DemangleInput( itk::DataObject* image )
- {
- }
-
- // -------------------------------------------------------------------------
- template< class I, class O >
- std::string cpPlugins::Plugins::OtsuThresholdImageFilter::
- _RealGD( itk::DataObject* image )
- {
- typedef itk::OtsuThresholdImageFilter< I, O > _F;
- typedef typename O::PixelType _OP;
-
- unsigned int bins = this->m_Parameters.GetValueAsUint( "NumberOfHistogramBins" );
- _OP in = _OP( this->m_Parameters.GetValueAsReal( "InsideValue" ) );
- _OP out = _OP( this->m_Parameters.GetValueAsReal( "OutsideValue" ) );
-
- _F* filter = dynamic_cast< _F* >( this->m_RealProcessObject.GetPointer( ) );
- if( filter == NULL )
- {
- this->m_RealProcessObject = _F::New( );
- filter = dynamic_cast< _F* >( this->m_RealProcessObject.GetPointer( ) );
-
- } // fi
- filter->SetInput( dynamic_cast< I* >( image ) );
- filter->SetNumberOfHistogramBins( bins );
- filter->SetInsideValue( in );
- filter->SetOutsideValue( out );
- filter->Update( );
- this->m_Outputs[ 0 ]->SetITKDataObject( filter->GetOutput( ) );
-
- return( "" );
- }
-*/
-