[Insight-users] Do "origin" and "offset" of an image mean the same?

Luis Ibanez luis.ibanez at kitware.com
Tue Mar 31 18:59:13 EDT 2009


Hi Subrahmanyam.

The term "origin" in the context of the itk::Image class
is indeed equivalent to "offset" in the context of the MetaImage header.

That is, if you open a MetaImage header with a text editor,
the numbers that you see in the "Offset" entry, are the same
that you will see if you load that image into an itk::Image object,
and ask for image->GetOrigin().

The reason for the difference in terminology is that the MetaImage
file format was developed independently of ITK (just as most of the
other file formats supported by ITK).


So, if you are reading a MetaImage in Volview, you should provide
the values of the MetaImage header "Offset" field in the "origin"
field of the VolView load image dialog.


     Regards,


            Luis


------------------------------------------------------------------------------
On Tue, Mar 31, 2009 at 1:26 PM, Subrahmanyam Gorthi
<subrahmanyam.gorthi at gmail.com> wrote:
> Hi,
>
> First of all, please pardon me for asking basic things.
>
> I would like to know whether origin means same as offset value that is
> mentioned in an image header file (for example: .mhd file).
>
> When I am loading a raw image from volview, it has an option for origin, but
> not for offset.
> I know the offset values from the header file. Can I specify the same for
> the origin.
> If they are not same, how can I input the offset value in volview?
> Offset value is important for me since I am trying to overlap two images
> with different offsets.

> Thanks a lot for your kind answer.
>
> Warm Regards,
> Subrahmanyam.
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list