[Insight-developers] Center computations wrong?

Karthik Krishnan karthik.krishnan at kitware.com
Wed Mar 7 09:52:34 EST 2007


I agree. Please log this as a bug at itk.org/Bug

Thanks for reporting this
--
karthik

On 3/7/07, Dieter Hahn <dieter.hahn at informatik.uni-erlangen.de> wrote:
>
> Hi,
> I've encountered a problem with some center coordinate computations for
> the
> structured grid images (e.g. the CenteredTransformInitializer). The center
> is computed basically as origin + 0.5 * size * spacing in a normally
> oriented image. This seems to be contradictory to the image
> representation,
> as the origin is located at the center of the pixel. This is depicted in
> the
> software guide in chapter 4.1.4 "Defining Origin and Spacing.
>
> The formula should use size-1 instead.
>
> For instance, consider an image of size [3,3], pixel spacing [1,1] and
> zero
> origin. In a node centered representation as in ITK, the center position
> should be [1,1] instead of [1.5,1.5].
>
> Is this a misunderstanding from my side or is there indeed something wrong
> going on?
>
> Thanks,
> Dieter
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.7/712 - Release Date: 06.03.2007
> 15:42
>
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20070307/dcd6c86a/attachment.htm


More information about the Insight-developers mailing list