X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkImageToImageGenericFilter.txx;h=6d2a7cd32df402039a9487b4c00a27b46c5e72b0;hb=6d21b5c535447c4e823bd41890c75f1ee5476227;hp=6febe19f9440d515c27f2e527eee2e82b3d781b8;hpb=96a65c0dafae2081d6da4975bddf7567ab6c05d0;p=clitk.git diff --git a/common/clitkImageToImageGenericFilter.txx b/common/clitkImageToImageGenericFilter.txx index 6febe19..6d2a7cd 100644 --- a/common/clitkImageToImageGenericFilter.txx +++ b/common/clitkImageToImageGenericFilter.txx @@ -3,8 +3,8 @@ Program: vv Module: $RCSfile: clitkImageToImageGenericFilter.txx,v $ Language: C++ - Date: $Date: 2010/03/01 15:37:41 $ - Version: $Revision: 1.7 $ + Date: $Date: 2010/03/02 13:28:42 $ + Version: $Revision: 1.8 $ Author : Joel Schaerer David Sarrut @@ -26,35 +26,35 @@ =========================================================================*/ -//-------------------------------------------------------------------- -template -void clitk::ImageToImageGenericFilterBase::SetNextOutput(typename ImageType::Pointer output) { - if (mOutputFilenames.size()) - { - clitk::writeImage(output, mOutputFilenames.front(), mIOVerbose); - mOutputFilenames.pop_front(); - } - if (mInputVVImages.size()) //We assume that if a vv image is set as input, we want one as the output - mOutputVVImages.push_back(vvImageFromITK(output)); -} -//-------------------------------------------------------------------- - - -//-------------------------------------------------------------------- -template -typename ImageType::Pointer clitk::ImageToImageGenericFilterBase::GetInput(unsigned int n) { - if (mInputFilenames.size() > n) { - return clitk::readImage(mInputFilenames[n], mIOVerbose); - } - else if (mInputVVImages.size() > n) - return typename ImageType::Pointer(const_cast(vvImageToITK(mInputVVImages[n]).GetPointer())); - else - { - assert(false); //No input, this shouldn't happen - return typename ImageType::Pointer(NULL); - } -} -//-------------------------------------------------------------------- +// //-------------------------------------------------------------------- +// template +// void clitk::ImageToImageGenericFilterBase::SetNextOutput(typename ImageType::Pointer output) { +// if (mOutputFilenames.size()) +// { +// clitk::writeImage(output, mOutputFilenames.front(), mIOVerbose); +// mOutputFilenames.pop_front(); +// } +// if (mInputVVImages.size()) //We assume that if a vv image is set as input, we want one as the output +// mOutputVVImages.push_back(vvImageFromITK(output)); +// } +// //-------------------------------------------------------------------- + + +// //-------------------------------------------------------------------- +// template +// typename ImageType::Pointer clitk::ImageToImageGenericFilterBase::GetInput(unsigned int n) { +// if (mInputFilenames.size() > n) { +// return clitk::readImage(mInputFilenames[n], mIOVerbose); +// } +// else if (mInputVVImages.size() > n) +// return typename ImageType::Pointer(const_cast(vvImageToITK(mInputVVImages[n]).GetPointer())); +// else +// { +// assert(false); //No input, this shouldn't happen +// return typename ImageType::Pointer(NULL); +// } +// } +// //-------------------------------------------------------------------- //--------------------------------------------------------------------