if (_viewMaskImagePanel==NULL)
{
_contourextractdata = new ContourExtractData(true);
- _contourextractdata->SetImage( _theViewPanel->getImageData() );
-
+ _contourextractdata->SetImage( _theViewPanel->getImageData() );
// double range[2];
// _theViewPanel->getImageData()->GetScalarRange(range);
//int min = (int)floor (range[0]);
//int max = (int)ceil (range[1]);
int min = 254;
int max = 256;
-
_viewMaskImagePanel = new ThresholdImageViewPanel( parent, -1, -1 , 0);
_viewMaskImage = new ThresholdImageView();
_viewMaskImage->SetImage(_contourextractdata->GetVtkImageMaskResult() );
_viewMaskImage->SetBaseColor( 0,0,1 );
_viewMaskImagePanel->SetThresholdImageView( _viewMaskImage );
_viewMaskImage->SetwxVtkBaseView( _theViewPanel->getWxVtkBaseView() );
-
}
return _viewMaskImagePanel;
}
int max = (int)ceil (range[1]);
_viewColorLayerImagePanel = new ColorLayerImageViewPanel( parent, min, max , 1);
_viewColorLayerImage = new ColorLayerImageView();
- _viewColorLayerImage->SetImage( _theViewPanel->getImageData() );
+// _viewColorLayerImage->SetImage( _theViewPanel->getImageData() );
+ _viewColorLayerImage->SetImage( NULL );
_viewColorLayerImagePanel->SetColorLayerImageView( _viewColorLayerImage );
_viewColorLayerImage->SetwxVtkBaseView( _theViewPanel->getWxVtkBaseView() );
}