From 5999f0266615dddfc3d2e885d8fb9e60b5172058 Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Tue, 20 Sep 2011 18:47:52 +0200 Subject: [PATCH] support for mha images MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - another patch by Joël --- vv/vvMainWindow.cxx | 1 + vv/vvSegmentationDialog.cxx | 4 ++++ vv/vvToolStructureSetManager.cxx | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) 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"), -- 2.45.1