From: Romulo Pinho Date: Tue, 20 Sep 2011 16:47:52 +0000 (+0200) Subject: support for mha images X-Git-Tag: v1.3.0~234^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5999f0266615dddfc3d2e885d8fb9e60b5172058;p=clitk.git support for mha images - another patch by Joël --- diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 1c2230f..596e6af 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -2200,6 +2200,7 @@ void vvMainWindow::SaveAs() OutputListeFormat.clear(); if (dimension == 1) { OutputListeFormat.push_back(".mhd"); + OutputListeFormat.push_back(".mha"); } if (dimension == 2) { OutputListeFormat.push_back(".bmp"); diff --git a/vv/vvSegmentationDialog.cxx b/vv/vvSegmentationDialog.cxx index 53fd8d2..888375e 100644 --- a/vv/vvSegmentationDialog.cxx +++ b/vv/vvSegmentationDialog.cxx @@ -513,20 +513,24 @@ void vvSegmentationDialog::Save() int dimension = mManager->GetDimension(); if (dimension == 1) { OutputListeFormat.push_back(".mhd"); + OutputListeFormat.push_back(".mha"); } if (dimension == 2) { OutputListeFormat.push_back(".bmp"); OutputListeFormat.push_back(".png"); OutputListeFormat.push_back(".jpeg"); OutputListeFormat.push_back(".tif"); + OutputListeFormat.push_back(".mha"); OutputListeFormat.push_back(".mhd"); OutputListeFormat.push_back(".hdr"); OutputListeFormat.push_back(".vox"); } else if (dimension == 3) { + OutputListeFormat.push_back(".mha"); OutputListeFormat.push_back(".mhd"); OutputListeFormat.push_back(".hdr"); OutputListeFormat.push_back(".vox"); } else if (dimension == 4) { + OutputListeFormat.push_back(".mha"); OutputListeFormat.push_back(".mhd"); } QString Extensions = "AllFiles(*.*)"; diff --git a/vv/vvToolStructureSetManager.cxx b/vv/vvToolStructureSetManager.cxx index 151435f..b424359 100644 --- a/vv/vvToolStructureSetManager.cxx +++ b/vv/vvToolStructureSetManager.cxx @@ -248,7 +248,7 @@ void vvToolStructureSetManager::OpenBinaryImage() mCurrentStructureSetActor = mStructureSetActorsList[index].data(); mCurrentStructureSetIndex = index; // Open images - QString Extensions = "Images files ( *.mhd *.hdr *.his)"; + QString Extensions = "Images files ( *.mha *.mhd *.hdr *.his)"; Extensions += ";;All Files (*)"; QStringList filename = QFileDialog::getOpenFileNames(this,tr("Open binary image"),