template<unsigned int VImageDimension>
void vvImageReader::UpdateWithDim(std::string InputPixelType)
{
- if (mType == VECTORFIELD)
+ if (mType == VECTORFIELD || mType == VECTORFIELDWITHTIME)
UpdateWithDimAndInputPixelType<itk::Vector<float,3>,VImageDimension>();
else if (InputPixelType == "short")
UpdateWithDimAndInputPixelType<short,VImageDimension>();
reader->ReleaseDataFlagOn();
try {
- if (mType == IMAGEWITHTIME)
+ if (mType == IMAGEWITHTIME || mType == VECTORFIELDWITHTIME)
mImage=vvImageFromITK<VImageDimension,InputPixelType>(reader->GetOutput(),true);
else
mImage=vvImageFromITK<VImageDimension,InputPixelType>(reader->GetOutput());
if (mVectorReader.IsNull())
mVectorReader = vvImageReader::New();
mVectorReader->SetInputFilename(filename);
- mVectorReader->Update(vvImageReader::VECTORFIELD);
+
+ if (mType == vvImageReader::IMAGEWITHTIME)
+ mVectorReader->Update(vvImageReader::VECTORFIELDWITHTIME);
+ else
+ mVectorReader->Update(vvImageReader::VECTORFIELD);
if (mVectorReader->GetLastError().size() != 0) {
mLastError = mVectorReader->GetLastError();
return false;