<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Dženan,</p>
<p>I'm using an in-house version of MITK [1], which I know was built
in 64bits and it's running on a 64bits windows.<br>
</p>
<p>So you're telling me that ITK should be able to read my image? I
thought the fault was on ITK side because the error arises in <tt>itkImageIOBase.cxx</tt>
in this method (m_ComponentType == 0) :</p>
<p><tt>unsigned int ImageIOBase::GetComponentSize() const</tt><tt><br>
</tt><tt>{</tt><tt><br>
</tt><tt> switch ( m_ComponentType )</tt><tt><br>
</tt><tt> {</tt><tt><br>
</tt><tt> case UCHAR:</tt><tt><br>
</tt><tt> return sizeof( unsigned char );</tt><tt><br>
</tt><tt> case CHAR:</tt><tt><br>
</tt><tt> return sizeof( char );</tt><tt><br>
</tt><tt> case USHORT:</tt><tt><br>
</tt><tt> return sizeof( unsigned short );</tt><tt><br>
</tt><tt> case SHORT:</tt><tt><br>
</tt><tt> return sizeof( short );</tt><tt><br>
</tt><tt> case UINT:</tt><tt><br>
</tt><tt> return sizeof( unsigned int );</tt><tt><br>
</tt><tt> case INT:</tt><tt><br>
</tt><tt> return sizeof( int );</tt><tt><br>
</tt><tt> case ULONG:</tt><tt><br>
</tt><tt> return sizeof( unsigned long );</tt><tt><br>
</tt><tt> case LONG:</tt><tt><br>
</tt><tt> return sizeof( long );</tt><tt><br>
</tt><tt> case FLOAT:</tt><tt><br>
</tt><tt> return sizeof( float );</tt><tt><br>
</tt><tt> case DOUBLE:</tt><tt><br>
</tt><tt> return sizeof( double );</tt><tt><br>
</tt><tt> case UNKNOWNCOMPONENTTYPE:</tt><tt><br>
</tt><tt> default:</tt><tt><br>
</tt><tt> itkExceptionMacro ("Unknown component type: "
<< m_ComponentType);</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt>}</tt><br>
</p>
<p>AFAIK, INT and LONG are equivalent so I don't understand which
line is supposed to handle INT64.<br>
</p>
<p>Nil Goyette<br>
</p>
<p>[1] <a class="moz-txt-link-freetext" href="http://mitk.org/wiki/MITK">http://mitk.org/wiki/MITK</a><br>
</p>
<br>
<div class="moz-cite-prefix">Le 2017-10-25 à 09:07, Dženan Zukić a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAPf2UMS4K63HyzdwvJ-7KZ7aBM755zGoDpqv0HzSYHEZEeEwcg@mail.gmail.com">
<div dir="ltr">
<div class="gmail_default"
style="font-family:verdana,sans-serif;font-size:small">Hi Nil,</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;font-size:small">which
ITK-based tool are you using? If it was compiled in 32-bits,
that might be the reason for lack of support of 64-bit
data-types. Are you using x86 processor architecture?</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;font-size:small">Regards,</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;font-size:small">Dženan</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Oct 24, 2017 at 9:50 AM, Nil
Goyette <span dir="ltr"><<a
href="mailto:nil.goyette@imeka.ca" target="_blank"
moz-do-not-send="true">nil.goyette@imeka.ca</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I created an image using nibabel and I found that I can't
open them with an itk-based tool. I found on this page [1]
the supported datatypes of "Analyze" image. I was surprised
by the absence of [unsigned] long long, aka int64 and
uint64, mostly because the standard do support them.<br>
<br>
In the nifti1.h header<br>
#define DT_INT64 1024 /* long long (64
bits) */<br>
#define DT_UINT64 1280 /* unsigned long
long (64 bits) */<br>
<br>
I didn't found much on the internet telling me that ITK
doesn't support them so I'm still unsure. Does ITK support
those datatypes? Thank you.<br>
<br>
Nil Goyette<br>
<br>
[1] <a href="https://itk.org/Wiki/ITK/File_Formats"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://itk.org/Wiki/ITK/File_<wbr>Formats</a><br>
<br>
The ITK community is transitioning from this mailing list to
<a href="http://discourse.itk.org" rel="noreferrer"
target="_blank" moz-do-not-send="true">discourse.itk.org</a>.
Please join us there!<br>
______________________________<wbr>__________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank"
moz-do-not-send="true">Community@itk.org</a><br>
<a
href="http://public.kitware.com/mailman/listinfo/community"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://public.kitware.com/mail<wbr>man/listinfo/community</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>