X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolPlastimatch.cxx;h=06f8148509ab59ed83c3170ceeb3cf1a06741ea9;hb=16f9cff32207e43328678cdb17a0bccc3441b6cb;hp=466d43e947964978ce6b85479d389cdbf40c0aad;hpb=b6f0737b5de61837f04f8a0071ab7070b76866d9;p=clitk.git diff --git a/vv/vvToolPlastimatch.cxx b/vv/vvToolPlastimatch.cxx index 466d43e..06f8148 100644 --- a/vv/vvToolPlastimatch.cxx +++ b/vv/vvToolPlastimatch.cxx @@ -163,13 +163,15 @@ void vvToolPlastimatch::apply() GetOptionsFromGUI(); // Create the command string - char *command_string = + /* + const char *command_string = "[STAGE]\n" "xform=bspline\n" "max_its=30\n" "grid_spac=100 100 100\n" "res=4 4 2\n" ; + */ // Prepare the registration /* @@ -194,13 +196,18 @@ void vvToolPlastimatch::apply() */ // Get warped output and display it - m_WarpedImage = vvImageFromITK<3, float>(m_WarpedImageITK); - std::ostringstream osstream; - osstream << "plm_warped_" << m_InputSlicerManagers[1]->GetFileName() << ".mhd"; - AddImage(m_WarpedImage, osstream.str()); - - // Get DVF - DD("TODO get and display DVF"); + if (m_WarpedImageITK) { + m_WarpedImage = vvImageFromITK<3, float>(m_WarpedImageITK); + std::ostringstream osstream; + osstream << "plm_warped_" << m_InputSlicerManagers[1]->GetFileName() << ".mhd"; + AddImage(m_WarpedImage, osstream.str()); + + // Get DVF + DD("TODO get and display DVF"); + } + else { + QMessageBox::information(this, "Error", "No result ..."); + } // End QApplication::restoreOverrideCursor();