<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">I am in the camp of not using char but rather explicit 8-bit int (signed or unsigned). In C++, uint8_t and int8_t should be implicitly convertible to unsigned char and signed char respectively.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 13, 2016 at 3:51 PM, Lowekamp, Bradley (NIH/NLM/LHC) [C] <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Yes, according to C++(C) the types “char”, “unsigned char”, and “signed char” are distinct intrinsict types. The “char” type may or may not be signed [1].
<div><br>
</div>
<div>However, from a portable I/O perspective, the data must be either “signed” or “unsigned”. I think using fixed with integer types for the byte size is appropriate for portable I/O.</div>
<div><br>
</div>
<div>Using the “char” type, with its undefined signess for I/O or image processing is a mistake just waiting to happen, which can result in unexpected signed behavior.<br>
<div><br>
</div>
<div>HTH,</div>
<div>Brad</div>
<div><br>
</div>
<div>[1] <a href="http://stackoverflow.com/questions/2054939/is-char-signed-or-unsigned-by-default" target="_blank">http://stackoverflow.com/<wbr>questions/2054939/is-char-<wbr>signed-or-unsigned-by-default</a></div>
<div><br>
</div>
<div><br>
<div>
<blockquote type="cite"><div><div class="h5">
<div>On Sep 13, 2016, at 6:07 AM, Coert Metz <<a href="mailto:c.metz@quantib.com" target="_blank">c.metz@quantib.com</a>> wrote:</div>
<br>
</div></div><div><div><div class="h5">
<div dir="ltr">
<div style="font-size:12.8px">I don't have editing privileges for the wiki but I want to respond on the suggestion to use fixed width types. In general, I think this is a good idea. However, for char you have to realize that char, signed char and unsigned
char are three different types. Changing char -> int8_t will therefore always be a real type change (and not only potentially for some platforms). I am not sure if this is desirable as char is quite widely used for 8 bit image representations in other systems/libraries.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Kind regards,</div>
<div style="font-size:12.8px">Coert Metz</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Sep 9, 2016 at 11:40 PM, Dženan Zukić <span dir="ltr">
<<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
I added a couple items to the wishlist.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div>On Fri, Sep 9, 2016 at 3:28 PM, Francois Budin <span dir="ltr">
<<a href="mailto:francois.budin@kitware.com" target="_blank">francois.budin@kitware.com</a>></span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>Hello everyone,<br>
<br>
</div>
I just started a wishlist page for ITKv5. As far as I know, there is no current ITKv5 officially planned but it may be a good location to keep track of the current limitations of ITK and what could be improved in the next major revision that may break some
of the API. Please feel free to add any of your wishes on that page here: <a href="https://itk.org/Wiki/ITK_Release_5/Wish_List" target="_blank">
https://itk.org/Wiki/ITK_Relea<wbr>se_5/Wish_List</a><br>
</div>
Thanks!<span><font color="#888888"><br>
<br>
</font></span></div>
<span><font color="#888888">Francois<br>
</font></span></div>
<br>
</div>
</div>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://kitware.com/products/pr<wbr>otraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FA<wbr>Q</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/insight-developer<wbr>s</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://kitware.com/products/pr<wbr>otraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FA<wbr>Q</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/insight-developer<wbr>s</a><br>
<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>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><font><span style="font-family:arial;font-size:small">Coert Metz, PhD</span></font>
<div>
<div dir="ltr">
<div style="font-size:small;font-family:arial"><font>Software Architect / Research & Development Engineer | <a href="http://www.quantib.com/" target="_blank">Quantib B.V.</a></font></div>
<div style="font-size:small;font-family:arial">
<div><font><a href="mailto:c.metz@quantib.com" target="_blank">c.metz@quantib.com</a> | +31 650 68 60 28</font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div></div><font face="Arial, Helvetica, sans-serif" size="1" style="background-color:white">This message may contain confidential or privileged information. If you are not the addressee, please notify the sender and delete it from your files.</font>________________________<wbr>_______________________<span class=""><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" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/community</a><br>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote></div><br></div>