======================================================================-====*/
#ifndef VVIMAGEFROMITK_H
#define VVIMAGEFROMITK_H
+
+// vv
#include "vvImage.h"
-//#include <itkImage.h>
+
+// itk
#include <itkExtractImageFilter.h>
#include <itkImageToVTKImageFilter.h>
+//------------------------------------------------------------------------------
/**Converts the itk image to vv, handling the 4D problem
* The time_sequence boolean specifies that the image is to be interpreted as a time sequence,
* even if its dim is < 4. */
image->DeepCopy(connector->GetOutput());
vv_image->AddImage(image);
}
+ vv_image->SetTimeSpacing(input->GetSpacing()[Dim-1]);
+ vv_image->SetTimeOrigin(input->GetOrigin()[Dim-1]);
}
else //Dim == 1,2,3 and not time_sequence
{
}
return vv_image;
}
+//------------------------------------------------------------------------------
#endif //vvImageFromITK