<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">I confirm your problem, and also think it is a bug. A post to start discussion is <a href="https://discourse.itk.org/t/no-support-for-64-bit-integral-pixel-types/353">here</a>. Please register on <a href="https://discourse.itk.org/">Discourse</a> and take part in the discussion there.</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 Wed, Oct 25, 2017 at 9:31 AM, Nil Goyette <span dir="ltr"><<a href="mailto:nil.goyette@imeka.ca" target="_blank">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">
  
    
  
  <div 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(<wbr>) 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="m_6756950322774811710moz-txt-link-freetext" href="http://mitk.org/wiki/MITK" target="_blank">http://mitk.org/wiki/MITK</a><br>
    </p><div><div class="h5">
    <br>
    <div class="m_6756950322774811710moz-cite-prefix">Le 2017-10-25 à 09:07, Dženan Zukić a
      écrit :<br>
    </div>
    <blockquote type="cite">
      <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">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">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">discourse.itk.org</a>.
            Please join us there!<br>
            ______________________________<wbr>__________<br>
            Community mailing list<br>
            <a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
            <a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/community</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>