* vvImageReader had the same behaviour when used with MERGEDWITHTIME and
with IMAGEWITHTIME in case of multiple images to load. The second is
less effective since it composes multiple images to decompose them
after. I added an error message asking to use MERGEDWITHTIME in this
case.
try {
if (mType == IMAGEWITHTIME)
- mImage=vvImageFromITK<VImageDimension,InputPixelType>(reader->GetOutput(),true);
+ {
+ std::cerr << "We should never come here:" << std::endl
+ << " Calling vvImageReader with multiple images and IMAGEWITHTIME is undefined." << std::endl
+ << " You are probably looking for MERGEDWITHTIME Type." << std::endl;
+ return;
+ }
else
mImage=vvImageFromITK<VImageDimension,InputPixelType>(reader->GetOutput());
} catch ( itk::ExceptionObject & err ) {