Hi,
I wonder if I found a bug in the WriteByITK() method of the mitk::ImageWriter
class regarding spacing and origin for 4 dimensional (3d+t) data. Could someone
please check and verify this?
I tried to save some 3d+t data to .nrrd format and found some weird "space
directions" and "space origin" information in the output file.
In mitk::ImageWriter::WriteByITK(...) there is a for-loop setting spacing and
origin information for each dimension to the itk image IO object:
[...]
for(unsigned int i=0; i<dimension; i++)
{
imageIO->SetDimensions(i,dimensions[i]);
imageIO->SetSpacing(i,spacing[i]);
imageIO->SetOrigin(i,origin[i]);
[...]
}
The attributes "spacing" and "origin" are mitk::Vector3D and mitk::Point3D
objects. If dimension is 4 (as in my case) the loop addresses spacing[3] and
origin[3] which are not defined, producing corrupt spacing and origin
information.
A somehow related bug is filed in the bug tracker: "NRRD format does not save
4D images" (Bug 8211). But it is closed and marked as "resolved fixed"...
Best regards,
Andreas
________________________________
The information contained in this message may be confidential and legally
protected under applicable law. The message is intended solely for the
addressee(s). If you are not the intended recipient, you are hereby notified
that any use, forwarding, dissemination, or reproduction of this message is
strictly prohibited and may be unlawful. If you are not the intended recipient,
please contact the sender by return e-mail and destroy all copies of the
original message.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users