X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolPlastimatch.cxx;h=fd156f3080abc4edeec882bff8ec68b5c8d6b227;hb=e6df1e1e6d29bacf5878463ef4db7589088ed381;hp=466d43e947964978ce6b85479d389cdbf40c0aad;hpb=b6f0737b5de61837f04f8a0071ab7070b76866d9;p=clitk.git diff --git a/vv/vvToolPlastimatch.cxx b/vv/vvToolPlastimatch.cxx index 466d43e..fd156f3 100644 --- a/vv/vvToolPlastimatch.cxx +++ b/vv/vvToolPlastimatch.cxx @@ -194,13 +194,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();