[ITK Community] [Insight-users] Fail to load file in ITK-snap

Nicolas Cordier nicolas.cordier at inria.fr
Mon Nov 25 12:51:47 EST 2013


Hi Kevin,

I had a look at the header information of landmarks.nii.gz, and I believe I have spotted the problem:
    Bounding Box       : {[-96.8621 12.4808 46.858], [-28.6121 97.2308 130.108]}
I think the problem here is the value -28.6121, which to my understanding means the bounding box has a negative width component.

Do you know the reason why this negative value could have been set?

Best regards,
-- 
Nicolas CORDIER
ASCLEPIOS PhD Candidate
INRIA SOPHIA ANTIPOLIS - MEDITERRANEE 



----- Mail original -----
> De: "Kevin Keraudren" <kevin.keraudren10 at imperial.ac.uk>
> À: insight-users at itk.org
> Envoyé: Lundi 25 Novembre 2013 16:30:51
> Objet: [Insight-users] Fail to load file in ITK-snap
> 
> Hi,
> 
> Some of my files fail to open in ITK-snap, here is the error message
> I
> get with the latest version of ITK-snap
> (itksnap-2.4.0-20121121-Linux-x86_64):
> 
> Error loading file 'landmarks.nii.gz'
> Reason:
> itk::ExceptionObject (0x2ea2970)
> Location: "unknown"
> File:
> /mnt/build/pauly/itk42/InsightToolkit-4.2.1/Modules/Core/Common/include/itkImageToImageFilter.hxx
> Line: 243
> Description: itk::ERROR: UnaryFunctorImageFilter(0x26e0750): Inputs
> do
> not occupy the same physical space!
> InputImage Origin: [0.0000000e+00, 0.0000000e+00], InputImagePrimary
> Origin: [0.0000000e+00, 0.0000000e+00]
>      Tolerance: -9.6862053e-05
> InputImage Spacing: [-9.6862053e+01, 7.5000000e-01],
> InputImagePrimary
> Spacing: [-9.6862053e+01, 7.5000000e-01]
>      Tolerance: -9.6862053e-05
> 
> I attach to this file two versions of the same file, for
> "landmarks_no_header.nii.gz" I copied the header information (Origin,
> Sampling and Direction) from a file which worked fine, and the
> content
> can be opened in ITK snap.
> 
> I use ITK snap for manual segmentation, but creating images and
> manipulating images is done with an in-house library (IRTK).
> 
> Would you know why I get this error message?
> 
> I attach the two files I mention to this email.
> 
> Thanks a lot for your help,
> 
> Kind regards,
> 
> Kevin
> 
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
> 
> 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
> 
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

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 Community mailing list