[Insight-users] How to invert a float image?

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Sun Aug 9 17:50:49 EDT 2009


Le 9 août 09 à 22:58, lynx.abraxas at freenet.de a écrit :

> Hello!
>
>
> Changing         from          
> SingedDanielssonDistanceMapImageFilter        to
> DanielssonDistanceMapImageFilter I need to invert the output  of   
> the  filter.
> I'd  like  to  use  float  as  output for the distance map to be  
> able to store
> sqrt(2). I don't mind big vales to be unexact. So I think float  is   
> the  best
> choise.  Using  squared output I'd need int to store the data which  
> would need
> more memory.
> My problem: InvertIntensityImageFilter only gives a black image if   
> I  let  it
> invert float.
> Can a float image be inverted at all?
>

You have to give the maximum value in your image to  
InvertIntensityImageFilter to have it inversed.
Dirk has recently proposed to enhance InvertIntensityImageFilter to  
let it compute that value automatically. Maybe he has already  
implemented that feature...

Regards,

Gaëtan



-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090809/88c97262/attachment.pgp>


More information about the Insight-users mailing list