+ // ------------------------------------------------------------------------
+void wxMaracasCoutourTool::Init(wxVtkBaseView *wxvtkbaseview, vtkImageData* imagedata)
+{
+ this->imagedata = imagedata;
+ this->wxvtkbaseview = wxvtkbaseview;
+
+ InitVtkImagesResult();
+
+ vtkLookupTable *table = vtkLookupTable::New();
+ // table->SetAlphaRange(128,255);
+ table->SetRange(0, 255); // image intensity range
+ // table->SetValueRange(0.0, 1.0); // from black to white
+ table->SetValueRange(0.0, 255.0); // from black to white
+
+ table->SetTableValue (0, 1.0 , 1.0 , 1.0 , 0.1 );
+ table->SetTableValue (255, 1.0 , 1.0 , 0.0 , 0.1);
+
+ // table->SetTableValue (0, 0.0 , 0.0 , 1.0 , 0.35 );
+ // table->SetTableValue (255, 1.0 , 0.0 , 0.0 , 0.10);
+
+ table->SetSaturationRange(0.0, 0.0); // no color saturation
+ table->SetRampToLinear();
+ table->Build();
+
+ vtkImageMapToColors *mapperImage = vtkImageMapToColors::New();
+ vtkImageActor *actorImage = vtkImageActor::New();
+
+ mapperImage->SetLookupTable(table);
+
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
+ mapperImage->SetInput( imagedataMaskResult );
+ actorImage->SetInput( mapperImage->GetOutput() );
+#else
+ mapperImage->SetInputData( imagedataMaskResult );
+ actorImage->SetInputData( mapperImage->GetOutput() );
+#endif
+