Mathieu,<div><br></div><div>we'll take into account your recommendations. I also think it is better for the user (and the developer) to be free to decide explicitly which transformations to apply and when.</div><div><br>
</div><div>Just one more question, so far itk 3.x is using gdcm 1.x and the use of gdcm 2.x is up to the user, so if the behaviour is different I guess it's not responsibility of itk. Then itk4 will use gdcm 2.x natively so </div>
<div><ul><li>Are their developers aware of this change of behaviour? </li><li>Is there any intention to keep into itk4 the old gdcm 1.x behaviour (implicit color space) or it would have the gdcm 2.x behaviour (explicit color space)?</li>
</ul></div><div><br></div><div>Thanks and happy new year!</div><div><br><div class="gmail_quote">On Thu, Dec 30, 2010 at 11:06 AM, Mathieu Malaterre <span dir="ltr"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Jesús,<br>
<br>
There is indeed a subtle difference in between GDCM 2.x and GDCM<br>
1.x. Within GDCM 1.x an implicit color space used to occur without<br>
explicit control by the user. Because ITK does not define an explicit<br>
color space, the image are now loaded in the exact same color space as<br>
stored on disk (MONO1, MONO2, RGB, YBR...). This my "processing is not<br>
rendering" motto. I have summarized the issue in the GDCM FAQ:<br>
<br>
<a href="http://sourceforge.net/apps/mediawiki/gdcm/index.php?title=Using_GDCM_API#What_is_the_color_space_used_by_GDCM_to_ouput_an_Image_.3F" target="_blank">http://sourceforge.net/apps/mediawiki/gdcm/index.php?title=Using_GDCM_API#What_is_the_color_space_used_by_GDCM_to_ouput_an_Image_.3F</a><br>
<br>
I would encourage you to move away from the old GDCM 1.x approach,<br>
and instead use what is described in the FAQ. The ideal solution would<br>
be to allow the user to switch the color space on demand.<br>
<br>
Happy holidays !<br>
<div><div></div><div class="h5"><br>
On Wed, Dec 29, 2010 at 9:55 AM, Jesús Spínola <<a href="mailto:jspinola@gmail.com">jspinola@gmail.com</a>> wrote:<br>
> Hi again,<br>
> does anybody know what are the differences in itkGDCMIO when using gdcm<br>
> 1.2.x and gdcm 2.0.x?<br>
> As I said before I am getting different results for MONOCHROME1 images, so I<br>
> want to know what I should take into account when using gdcm 2.0.x to<br>
> achieve the same resaults as with gdcm 1.2.x<br>
> Thanks in advance!<br>
><br>
> On Fri, Dec 24, 2010 at 12:58 PM, Ivan Macia <<a href="mailto:imacia@vicomtech.org">imacia@vicomtech.org</a>> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> I can confirm this too. We are having exactly the same problem with the<br>
>> same configuration. I cannot say exactly which GDCM version since I don't<br>
>> have it here. What I don't remember either is if the problem appeared as a<br>
>> result of moving to GDCM 2.x or from upgrading from ITK 3.16 to 3.20 but I<br>
>> would say it was the upgrade to GDCM 2.x<br>
>><br>
>> Best regards<br>
>><br>
>> Iván<br>
>><br>
>> 2010/12/24 Jesús Spínola <<a href="mailto:jspinola@gmail.com">jspinola@gmail.com</a>><br>
>>><br>
>>> Hello,<br>
>>> I am a DICOM viewer application developer and we use itk, gdcm and vtk.<br>
>>> Until our last release we were using itk 3.16 (with integrated gdcm<br>
>>> 1.2.x) for reading the images and vtk 5.0 for displaying them.<br>
>>> We updated the libraries recently, so we are now using itk 3.20 (linked<br>
>>> against external gdcm 2.0) and vtk 5.6<br>
>>> We observed a different behaviour with gdcm 2.0.x when reading<br>
>>> MONOCHROME1 images with itkGDCM interface. The same MONOCHROME1 images that<br>
>>> were displyed correctly with itk 3.16 are now displayed like in inverse<br>
>>> video mode. I guess there have been some changes in the regarding classes so<br>
>>> in prior versions (itk+gdcm) some computation in the grayscale space was<br>
>>> performed which now it is not.<br>
>>> I would like to know the diferences between these versions regarding<br>
>>> image reading and what I should do if I want to display them like<br>
>>> itk3.16+gdcm1.2.x does.<br>
>>> This behaviour could be reproduced with the sample MONOCHROME1 images<br>
>>> contained<br>
>>> in <a href="http://www.creatis.insa-lyon.fr/~jpr/PUBLIC/gdcm/gdcmData.tar.gz" target="_blank">http://www.creatis.insa-lyon.fr/~jpr/PUBLIC/gdcm/gdcmData.tar.gz</a><br>
>>> like D_CLUNIE_RG1_RLE.dcm or D_CLUNIE_RG3_RLE.dcm.<br>
>>><br>
>>> Thanks in advance!<br>
>>> --<br>
>>> Jesús Spínola<br>
>>><br>
>>> _____________________________________<br>
>>> Powered by <a href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>><br>
>>> Kitware offers ITK Training Courses, for more information visit:<br>
>>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
>>><br>
>>> Please keep messages on-topic and check the ITK FAQ at:<br>
>>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>>><br>
>>> Follow this link to subscribe/unsubscribe:<br>
>>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>>><br>
>><br>
><br>
><br>
><br>
> --<br>
> Jesús Spínola<br>
><br>
> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
</div></div><font color="#888888">Mathieu<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Jesús Spínola<br>
</div>