<div>Thank you H.B.,</div><div><br></div><div>probably the best thing is to save the image with labels in a float image and then read it again in unsigned int image. </div><div>My question is still: according to <a href="http://www.itk.org/Wiki/ITK_File_Formats">http://www.itk.org/Wiki/ITK_File_Formats</a><span class="Apple-style-span" style="font-size: medium; "> </span>the "int" and the "unsigned int" Pixel types shouldn't be supported for saving images in gipl format? <div>
<br></div><div>Thank you</div><div><br></div><div>Regards</div><div><br></div><div>Niccolo'</div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Sun, Nov 14, 2010 at 5:34 AM, H-B <span dir="ltr"><<a href="mailto:h4cd@yahoo.com">h4cd@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><div>Dear <font face="monospace"><span style="line-height:14px;white-space:pre-wrap"><font size="3"><span style="font-size:13px">Niccolo'</span></font></span></font></div>
<div> </div>
<div>I am new ti itk, but i think it should be float. i read something like that in segmentation.<br></div>
<div> </div>
<div>Best regards </div>
<div> </div>
<div> H.B</div>
<div> </div>
<div> </div>
<div><br>--- On <b>Sat, 11/13/10, niccolo camarlinghi <i><<a href="mailto:niccolo.camarlinghi@gmail.com" target="_blank">niccolo.camarlinghi@gmail.com</a>></i></b> wrote:<br></div>
<blockquote style="border-left:rgb(16,16,255) 2px solid;padding-left:5px;margin-left:5px"><br>From: niccolo camarlinghi <<a href="mailto:niccolo.camarlinghi@gmail.com" target="_blank">niccolo.camarlinghi@gmail.com</a>><br>
Subject: [Insight-users] error saving gipl<br>To: "itk" <<a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a>><br>Date: Saturday, November 13, 2010, 6:58 AM<div><div></div><div class="h5">
<br><br>
<div>Dear all,
<div><br></div>
<div>I'm trying to save an itkImage in gipl format: the image is 3d and, contains 100k labeled objects and the pixel type is int. </div>
<div>After calling the update() method in the writer, i got this exception </div>
<div><br></div>
<div>"Pixel Type Unknown"</div>
<div><br></div>
<div>I red the page <a href="http://www.itk.org/Wiki/ITK_File_Formats" rel="nofollow" target="_blank">http://www.itk.org/Wiki/ITK_File_Formats</a></div>
<div>and from what I understood, the "int" pixel type should be supported.. so I cannot understand the reason of this exception.</div>
<div>Moreover this kind of exception happens also if I use the <span style="line-height:14px;font-family:monospace;white-space:pre-wrap;font-size:13px">unsigned int, while the image is saved correctly for float,short int, unsigned char pixel type...</span></div>
<div><span style="line-height:14px;font-family:monospace;white-space:pre-wrap;font-size:13px"><br></span></div>
<div><span style="line-height:14px;font-family:monospace;white-space:pre-wrap;font-size:13px">I was wondering, if i'm doing something wrong or if the pixel type int is not supported for saving in gipl.</span></div>
<div><font face="monospace"><span style="line-height:14px;white-space:pre-wrap"><font size="3"><span style="font-size:13px"><br></span></font></span></font></div>
<div><font face="monospace"><span style="line-height:14px;white-space:pre-wrap"><font size="3"><span style="font-size:13px">Best Regards and thank you</span></font></span></font></div>
<div><font face="monospace"><span style="line-height:14px;white-space:pre-wrap"><font size="3"><span style="font-size:13px"><br></span></font></span></font></div>
<div><font face="monospace"><span style="line-height:14px;white-space:pre-wrap"><font size="3"><span style="font-size:13px">Niccolo'</span></font></span></font></div>
<div> </div>
<div> </div></div><br></div></div>-----Inline Attachment Follows-----<br><br>
<div>_____________________________________<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>
</div></blockquote></td></tr></tbody></table><br>
</blockquote></div><br></div></div>