From: Eduardo DAVILA Date: Mon, 7 Dec 2020 14:35:18 +0000 (+0100) Subject: Update Threshold X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=cfe58681d8de1b0f2c1cefd53dd15e39984b4aff;p=creaMaracasVisu.git Update Threshold --- diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx index 0cfd883..0aaef03 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx @@ -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() diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx index cbf55cf..b40f815 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx @@ -264,7 +264,7 @@ void LayerImageBase::SetNewSpacingLayer(double spc[3]) _newSpcLayer[1] = spc[1]; _newSpcLayer[2] = spc[2]; _imageChangeInformation->SetOutputSpacing( _newSpcLayer ); - +_imageChangeInformation->Update(); }