X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=filters%2FclitkImageConvertGenericFilter.cxx;h=ca70097a39947126761f4d09e14d50e3518ba83c;hb=8abe9edbdc63a33f8fbb1f321073b762e08be9aa;hp=944ec8cf8eaec2400f0af676877b18a6a28076d5;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git diff --git a/filters/clitkImageConvertGenericFilter.cxx b/filters/clitkImageConvertGenericFilter.cxx index 944ec8c..ca70097 100644 --- a/filters/clitkImageConvertGenericFilter.cxx +++ b/filters/clitkImageConvertGenericFilter.cxx @@ -50,16 +50,16 @@ void clitk::ImageConvertGenericFilter::UpdateWithInputImageType() { // Verbose stuff - if (mIOVerbose) { - if (mInputFilenames.size() == 1) { - std::cout << "Input image <" << mInputFilenames[0] << "> is "; - itk::ImageIOBase::Pointer header = clitk::readImageHeader(mInputFilenames[0]); + if (m_IOVerbose) { + if (m_InputFilenames.size() == 1) { + std::cout << "Input image <" << m_InputFilenames[0] << "> is "; + itk::ImageIOBase::Pointer header = clitk::readImageHeader(m_InputFilenames[0]); printImageHeader(header, std::cout); std::cout << std::endl; } else { - for(unsigned int i=0; i is "; - itk::ImageIOBase::Pointer h = clitk::readImageHeader(mInputFilenames[i]); + for(unsigned int i=0; i is "; + itk::ImageIOBase::Pointer h = clitk::readImageHeader(m_InputFilenames[i]); printImageHeader(h, std::cout); std::cout << std::endl; } @@ -67,10 +67,10 @@ void clitk::ImageConvertGenericFilter::UpdateWithInputImageType() } - if ((mPixelTypeName == mOutputPixelTypeName) || (mOutputPixelTypeName == "NotSpecified")) { - // typename InputImageType::Pointer input = clitk::readImage(mInputFilenames); + if ((m_PixelTypeName == mOutputPixelTypeName) || (mOutputPixelTypeName == "NotSpecified")) { + // typename InputImageType::Pointer input = clitk::readImage(m_InputFilenames); typename InputImageType::Pointer input = this->template GetInput(0); - //clitk::writeImage(input, mOutputFilename, mIOVerbose); + //clitk::writeImage(input, mOutputFilename, m_IOVerbose); this->SetNextOutput(input); } else { #define TRY_TYPE(TYPE) \ @@ -107,14 +107,14 @@ void clitk::ImageConvertGenericFilter::UpdateWithOutputType() std::ostringstream osstream; if (std::numeric_limits::is_signed) { if (!std::numeric_limits::is_signed) { - osstream << "Warning, input type is signed (" << mPixelTypeName << ") while output type is not (" + osstream << "Warning, input type is signed (" << m_PixelTypeName << ") while output type is not (" << mOutputPixelTypeName << "), use at your own responsability." << std::endl; mWarningOccur = true; } } if (!std::numeric_limits::is_integer) { if (std::numeric_limits::is_integer) { - osstream << "Warning, input type is not integer (" << mPixelTypeName << ") while output type is (" + osstream << "Warning, input type is not integer (" << m_PixelTypeName << ") while output type is (" << mOutputPixelTypeName << "), use at your own responsability." << std::endl; mWarningOccur = true; } @@ -123,13 +123,13 @@ void clitk::ImageConvertGenericFilter::UpdateWithOutputType() // DD(std::numeric_limits::digits10); if (!std::numeric_limits::is_integer) { if (std::numeric_limits::is_integer) { - osstream << "Warning, input type is not integer (" << mPixelTypeName << ") while output type is (" + osstream << "Warning, input type is not integer (" << m_PixelTypeName << ") while output type is (" << mOutputPixelTypeName << "), use at your own responsability." << std::endl; mWarningOccur = true; } } if (std::numeric_limits::digits10 > std::numeric_limits::digits10) { - osstream << "Warning, possible loss of precision : input type is (" << mPixelTypeName << ") while output type is (" + osstream << "Warning, possible loss of precision : input type is (" << m_PixelTypeName << ") while output type is (" << mOutputPixelTypeName << "), use at your own responsability." << std::endl; mWarningOccur = true; } @@ -148,7 +148,7 @@ void clitk::ImageConvertGenericFilter::UpdateWithOutputType() // Write SetNextOutput(filter->GetOutput()); - //clitk::writeImage(filter->GetOutput(), mOutputFilename, mIOVerbose); + //clitk::writeImage(filter->GetOutput(), mOutputFilename, m_IOVerbose); } //====================================================================