[Insight-users] Get and Set itk Origin
Kevin H. Hobbs
hobbsk at ohiou.edu
Tue Sep 15 14:19:48 EDT 2009
On Tue, 2009-09-15 at 17:37 +0000, jef vdmb wrote:
> A non-zero index explicitely needs to be converted to a new origin.
> So when using the origin (of an image with non-zero index), one should
> also pass the index... this is a bit dangerous no?
I'm not sure what you mean by "pass".
The itkImage contains all of the information needed ( origin, index,
size, spacing, and nowadays direction ) to move from pixel space to
world space, and back so when you "pass" an image everything goes with
it.
If you need to do some manipulation of a region on your own then you do
need to take all of these into account.
The only issue I know about related to the writer recalculating the
origin is that if pieces of an image with large size and small spacing
is broken up into many pieces and written to files, then the pieces may
not line up exactly when reassembled.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090915/1d06bace/attachment.pgp>
More information about the Insight-users
mailing list