[Insight-users] spacing values of a raw image
Luis Ibanez
luis . ibanez at kitware . com
Tue, 27 Aug 2002 10:52:39 -0400
Hi Zein,
The Spacing information is used by the
itkGradientRecursiveGaussianImageFilter
but not by the
itkGradientImageFilter
Most of ITK filters take spacing into account
since this is fundamental for medical image
data. However, there are still some places
where spacing is not managed consistently
(something for the TODO list...)
Please note that when you read Raw images it
is up to you to set the spacing in your code
using the SetSpacing() method like for
example:
myRawImageIO->SetSpacing( 0, 0.33 );
myRawImageIO->SetSpacing( 1, 0.33 );
myRawImageIO->SetSpacing( 2, 1.50 );
this will define spacing of 0.33 in X,
0.33 in Y and 1.50 in Z.
Raw files only contain the binary data of the
pixels.
Luis
==================================
Zein Salah wrote:
> Hello friends,
>
>
>
> Are the spacing values of a raw image used in the implementation of the
> different filter (especially derivative filters), or they are just used
> by the viewers???????????????
>
>
>
> thanks
>
> Zein
>
>
>
>
>
> ->8<------------->8<------------->8<------------->8<------------->8<------------->8<-
> Zein I. Salah
> Universität Tübingen, WSI-GRIS
> Sand 14
> 72076 Tübingen
> Email: salah@gris.uni-tuebingen.de <mailto:salah@gris.uni-tuebingen.de>
> / zeinsalah@hotmail.com <mailto:zeinsalah@hotmail.com>
> Tel.: (07071) 29 75465 (GRIS) , (07071) 96 44 39 (privat)
>