]> Creatis software - cpPlugins.git/blobdiff - plugins/cpPluginsImageFilters/ImageToHistogramFilter.cxx
...
[cpPlugins.git] / plugins / cpPluginsImageFilters / ImageToHistogramFilter.cxx
index 22bf966dfc43291c1838090d699f6981c17534ee..4b1d62cea59dc51a9d03539781fa6a9d79b169af 100644 (file)
@@ -51,17 +51,17 @@ _GD0( _TImage* image )
 
   // Configure filter
   _TFilter* filter = this->_CreateITK< _TFilter >( );
+  filter->SetInput( image );
   /*
-    filter->SetInput( image );
     filter->SetLowerThreshold( lower_val );
     filter->SetUpperThreshold( upper_val );
     filter->SetInsideValue( in_val );
     filter->SetOutsideValue( out_val );
     filter->Update( );
-
-    // Connect output
-    this->GetOutputData( "Output" )->SetITK( filter->GetOutput( ) );
   */
+
+  // Connect output
+  this->GetOutputData( "Output" )->SetITK( filter->GetOutput( ) );
   return( "ImageToHistogramFilter: not ready yet." );
 }