]> Creatis software - cpPlugins.git/blobdiff - plugins/cpPluginsImageFilters/HistogramThresholdImageFilter.cxx
... and on linux again
[cpPlugins.git] / plugins / cpPluginsImageFilters / HistogramThresholdImageFilter.cxx
index 6d6608b57e2ef0e02cbc10986ed45f9830a1ee1a..1c9a673ba58d0c20f67df12ef804f81d6e6ba2ff 100644 (file)
@@ -53,9 +53,7 @@ std::string cpPluginsImageFilters::HistogramThresholdImageFilter::
 _GD0( _TImage* image )
 {
   if( image != NULL )
-    return(
-      this->_GD1< _TImage, itk::Image< unsigned char, _TImage::ImageDimension > >( image )
-      );
+    return( this->_GD1< _TImage, unsigned char >( image ) );
   else
     return(
       "ImageFilters::HistogramThresholdImageFilter: No valid input image."
@@ -63,17 +61,17 @@ _GD0( _TImage* image )
 }
 
 // -------------------------------------------------------------------------
-template< class _TImage, class _TBinaryImage >
+template< class _TImage, class _TBinaryPixel >
 std::string cpPluginsImageFilters::HistogramThresholdImageFilter::
 _GD1( _TImage* image )
 {
-  typedef itk::HistogramThresholdImageFilter< _TImage, _TBinaryImage > _F;
-  typedef typename _TImage::PixelType _TP;
+  typedef itk::Image< _TBinaryPixel, _TImage::ImageDimension > _TBinaryImage;
+  typedef itk::HistogramThresholdImageFilter< _TImage, _TBinaryImage > _TFilter;
 
   // Get parameters
 
   // Configure filter
-  _F* filter = this->_CreateITK< _F >( );
+  _TFilter* filter = this->_CreateITK< _TFilter >( );
   filter->SetInput( image );
   filter->Update( );