error_message="Computation of midposition is only supported for 4D image sequences.";
else if (!slicer_manager->GetVF())
error_message="A VF is required for midposition computation";
error_message="Computation of midposition is only supported for 4D image sequences.";
else if (!slicer_manager->GetVF())
error_message="A VF is required for midposition computation";
error_message="Please use a vector field of type float.";
else {
VFType::ConstPointer vf = vvImageToITK<VFType>(slicer_manager->GetVF());
error_message="Please use a vector field of type float.";
else {
VFType::ConstPointer vf = vvImageToITK<VFType>(slicer_manager->GetVF());
this->output=WarpRefImage<short>(inv_filter->GetOutput(),slicer_manager->GetImage(),reference_image_index);
else {
error_message="Unsupported image pixel type.";
this->output=WarpRefImage<short>(inv_filter->GetOutput(),slicer_manager->GetImage(),reference_image_index);
else {
error_message="Unsupported image pixel type.";