]> Creatis software - creaMaracasVisu.git/commitdiff
Update Threshold
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 7 Dec 2020 14:35:18 +0000 (15:35 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 7 Dec 2020 14:35:18 +0000 (15:35 +0100)
lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx

index 0cfd883971b768145f5affdd401b6cb10af3ec23..0aaef03610b4d2c7e4777865c855269f2b1e679c 100644 (file)
@@ -69,8 +69,6 @@ void wxDlgTransformByDimensionBySpacingByPixel::GetTransformType(
        lstOptOperation[1]=_T("Keep the spacing of the Layer Image");
        lstOptOperation[2]=_T("Use the same spacing of the Base Image");
 
-
-
        wxRadioBox * radioOpts = new wxRadioBox(dial, -1, _T("Type of spacing transformation"), wxDefaultPosition, wxSize(250,160), 3 , lstOptOperation,  1, wxRA_SPECIFY_COLS);
 
        wxString str;
@@ -328,7 +326,7 @@ void ColorLayerImageViewPanel::SetImage(vtkImageData *img)
        {
            _colorLayerImageViewManager->onThreshold();
                RefreshView();
-       } // _ative 
+       } // _ative     
 }
 
 void ColorLayerImageViewPanel::RefreshView()
index cbf55cfc471739c5bc5ac76749438e6087315fc5..b40f8156795ef949d6792c07a24d58430e3cf3c8 100644 (file)
@@ -264,7 +264,7 @@ void LayerImageBase::SetNewSpacingLayer(double spc[3])
        _newSpcLayer[1] = spc[1];
        _newSpcLayer[2] = spc[2];
        _imageChangeInformation->SetOutputSpacing( _newSpcLayer );  
-
+_imageChangeInformation->Update();
 }