Hi,<br><br>Regarding the binary images, the way I get it is by loading a random dicom file, obtain the output (which is of class itk::Image). After that I just change a row (position and width set arbitrary) to a value of n (again arbitrary chosen) and the rest to n+1 in the data.
<br>Finally save the modified image into a new dicom file.<br><br>In another words I don&#39;t really have any phantom files.<br>Do mail me personally if you still want it, I&#39;ll try to rewrite the code to generate the file as I sort of overwritten my testing code...
<br><br>Regards,<br>Pechin<br><br><div><span class="gmail_quote">On 9/25/07, <b class="gmail_sendername">Jean-Pierre Roux</b> &lt;<a href="mailto:jpr@creatis.insa-lyon.fr">jpr@creatis.insa-lyon.fr</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Pechin Lo wrote:<br>&gt; I&#39;m using ITK 3.2.0<br>&gt; Should I switch to 3.4 and try again?<br><br>I&#39;m afraid it will not change a lot.<br>In the very last version a gdcm, for a few images, we have, after<br>compression/decompression a few pixels that differs from +/-1 ...
<br>Could you send me one of your &#39;binary images&#39; that only consists of n<br>and n+, to see if we can track the bug?<br>Thx<br>Jean-Pierre Roux<br>&gt;<br>&gt; On 9/25/07, *Mathieu Malaterre* &lt;<a href="mailto:mathieu.malaterre@gmail.com">
mathieu.malaterre@gmail.com</a><br>&gt; &lt;mailto:<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; On 9/25/07, Steve M. Robbins &lt;<a href="mailto:steve@sumost.ca">
steve@sumost.ca</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:steve@sumost.ca">steve@sumost.ca</a>&gt;&gt; wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; On Mon, Sep 24, 2007 at 11:50:05PM +0200, Pechin Lo wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; After some tweaking around, I found out that JPEG compression
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; works provided<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; that the minimum difference between two pixels is 2.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; For example, if I have an image that only consists of n and<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; n+1, the saved<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; image will only contains the value n.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; However, if the image consists of value n and n+2, then the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; saved image will<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; contains both n and n+2.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; In other words, the image will stores fine if I multiply it by
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; a factor of<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; 2.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; Can someone please tell me why is this happening?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; I&#39;m not familiar with the code in question, but is it possible
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; that you&#39;re using a lossy JPEG compression?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi all,<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Could you please let me know if you are using ITK 3.2 / ITK 3.4<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; or CVS ?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Thanks
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; --<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Mathieu<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Ps: 3.4 and CVS should *not* produce this weird behavior.<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Pechin Lo Chien Pau<br>&gt; Ph.d. Student<br>&gt; Department of Computer Science (DIKU)
<br>&gt; University of Copenhagen<br>&gt; Universitetsparken 1, Office S226<br>&gt; DK-2100 Copenhagen, Denmark<br>&gt; Phone: +45 3532 1433<br>&gt; ------------------------------------------------------------------------
<br>&gt;<br>&gt; _______________________________________________<br>&gt; Insight-users mailing list<br>&gt; <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users">
http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;<br></blockquote></div><br><br clear="all"><br>-- <br>Pechin Lo Chien Pau<br>Ph.d. Student<br>Department of Computer Science (DIKU)<br>University of Copenhagen<br>
Universitetsparken 1, Office S226<br>DK-2100 Copenhagen, Denmark<br>Phone: +45 3532 1433