<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<div><br></div><div>In addition to what Neil said, to convert images from PNG to DICOM (and generally from</div><div><br></div><div>most image formats to others) you can use the ITK&nbsp;itself.</div><div><br></div><div>Take a look at the examples included in the "IO" directory of the ITK, in particular "Examples/IO/ImageReadCastWrite.cxx"</div><div><br></div><div>Chapter 7 of the ITK software guide has more details on these kind of
 operations.</div><div><br></div><div>Regards,</div><div><br></div><div>Dawood</div><div><br></div><div><br></div><div>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;</div><div><br></div><div>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;</div><div><br></div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, helvetica, clean, sans-serif; line-height: 15px; ">Hello,&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">&nbsp;<br style="line-height:
 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">Thanks for your reply,, I&nbsp;used it and was able to view the image.&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">I am stuggling actually with the whole&nbsp;idea of using the label overlap measure, there are no good explanation about this class !<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">does&nbsp;it only take .nii images ?? it&nbsp;is not&nbsp;working with my .png images.. not sure i might have&nbsp;problem with my image..&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">&nbsp;<br
 style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">I am also using ITK Snap .. and trying to convert my&nbsp;png images to nii .. can this be done? how? cant find good results in google.<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">i tried to&nbsp;download Sante editor to convert my&nbsp;png image to&nbsp;dicom so i can use it in ITK Snap ..&nbsp;was not able to view the image properly as the image loaded is greater than 16 bit used by ITK Snap ..&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">sorry&nbsp;about this,, im new to this and trying to do too many things in a short period
 of time&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">Thanks in advance&nbsp;:)<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">Regards,&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><hr id="yiv1411806856stopSpelling" style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">From: paniwani@gmail.com<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">Date: Thu, 19 May 2011
 18:00:39 -0400<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">Subject: Re: [Insight-users] label overlap measure test images<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">To: xlolla28x@hotmail.com<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">CC: insight-users@itk.org<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">.gz is a compression format like .zip<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em;
 outline-style: none; outline-width: initial; outline-color: initial; "></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">.nii is nifti:&nbsp;<a rel="nofollow" target="_blank" href="http://nifti.nimh.nih.gov/nifti-1/" style="line-height: 1.2em; text-decoration: underline; color: rgb(0, 51, 153); outline-style: none; outline-width: initial; outline-color: initial; ">http://nifti.nimh.nih.gov/nifti-1/</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color:
 initial; "></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><a rel="nofollow" target="_blank" href="http://nifti.nimh.nih.gov/nifti-1/" style="line-height: 1.2em; text-decoration: underline; color: rgb(0, 51, 153); outline-style: none; outline-width: initial; outline-color: initial; "></a>i recommend using fiji (<a rel="nofollow" target="_blank" href="http://pacific.mpi-cbg.de/wiki/index.php/Fiji" style="line-height: 1.2em; text-decoration: underline; color: rgb(0, 51, 153); outline-style: none; outline-width: initial; outline-color: initial; ">http://pacific.mpi-cbg.de/wiki/index.php/Fiji</a>) with a nifti plugin (<a rel="nofollow" target="_blank" href="http://rsbweb.nih.gov/ij/plugins/nifti.html" style="line-height: 1.2em; text-decoration:
 underline; color: rgb(0, 51, 153); outline-style: none; outline-width: initial; outline-color: initial; ">http://rsbweb.nih.gov/ij/plugins/nifti.html</a>) to view .nii files</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><div class="yiv1411806856ecxgmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">2011/5/19 LaMoOsH ..&nbsp;<span dir="ltr" style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial;
 ">&lt;<a rel="nofollow" ymailto="mailto:xlolla28x@hotmail.com" target="_blank" href="http://us.mc1302.mail.yahoo.com/mc/compose?to=xlolla28x@hotmail.com" style="line-height: 1.2em; text-decoration: underline; color: rgb(0, 51, 153); outline-style: none; outline-width: initial; outline-color: initial; ">xlolla28x@hotmail.com</a>&gt;</span><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><blockquote class="yiv1411806856ecxgmail_quote" style="margin-top: 1em; margin-right: 40px; margin-bottom: 1em; margin-left: 40px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 1ex; line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; display: block; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right:
 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">hello,&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">I am using the&nbsp;<font color="#a31515" size="2" style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><font color="#a31515" size="2" style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">itkLabelOverlapMeasuresImageFilter<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial;
 outline-color: initial; "><font color="#000000" style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">i did test the program, and it works well.&nbsp;</font><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><font color="#000000" style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">but i want to have a look at the images to know what kind of images it needs as an input..&nbsp;</font><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><font color="#000000" style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">i cant view the images .. it is in .nii.gz format and struggling to view them. any help?</font><br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><font color="#000000"
 style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "></font>&nbsp;<br style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; "><font color="#000000" style="line-height: 1.2em; outline-style: none; outline-width: initial; outline-color: initial; ">Thanks</font></font></font></div></blockquote></div></div></span></div></td></tr></table>