<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Dear Gaetan:</DIV>
<DIV> </DIV>
<DIV>Thanks, now I SetbackgroundValue as you suggested. It works.</DIV>
<DIV> </DIV>
<DIV>But SetBackgroundValue() is not defined in the itkBinaryMorophologicalErod filter.</DIV>
<DIV> </DIV>
<DIV>1, Is SetbackgroundValue given by the base calss itkBinaryMorphologyImageFilter--itkSetMacro(BackgroundValue, OutputPixelType).</DIV>
<DIV> </DIV>
<DIV>2, I do not know clearly itkSetMarco mean. Based on my understanding,</DIV>
<DIV> </DIV>
<DIV>If I itkSetMacro(BackgroundValue, OutputPixelType) defined in some filter, I can used filter->SetBackgrouValue() to set the value. Is it true?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks and my best regards</DIV>
<DIV> </DIV>
<DIV>Baoyun<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Gaëtan Lehmann <gaetan.lehmann@jouy.inra.fr><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Baoyun Li <baoyun_li123@yahoo.com><BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> ITK Users <insight-users@itk.org>; Siddharth Srivastava <siddys@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday, February 27, 2009 2:31:42 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Insight-users] Binary Morphology get output with 3 values ( 0 255 -32768)<BR></FONT><BR><BR>Hi,<BR><BR>Have you set the background value, with SetBackgroundValue()?<BR>Also, you may want to use BinaryMorphologicalClosingImageFilter¹, which already contain the code required to avoid the border effects.<BR><BR>Regards,<BR><BR>Gaëtan<BR><BR>¹ http://www.itk.org/Doxygen/html/classitk_1_1BinaryMorphologicalClosingImageFilter.html<BR><BR><BR>Le 27 févr. 09 à 00:39,
Siddharth Srivastava a écrit :<BR><BR>> Hi Baoyun,<BR>> I think this is just a tag to represent unreachable voxels / pixels<BR>> (something like -Inf, = -2^(16-1) in your case )<BR>> s.<BR>> <BR>> On Thu, Feb 26, 2009 at 2:31 PM, Baoyun Li <<A href="mailto:baoyun_li123@yahoo.com" ymailto="mailto:baoyun_li123@yahoo.com">baoyun_li123@yahoo.com</A>> wrote:<BR>> Dear All:<BR>> <BR>> I am trying to perform some binary morphology opetration on image with int type. My input is16 bit in with value 0 and 255.<BR>> <BR>> I set the binary morphology filter as suggested in the ITK example, the difference is my input and output in int 16.<BR>> <BR>> When I tryied to morphology closing using Dilate and erod, I filled the hole sucessfully. But I got -32768 value for the voxel between the forgournd and background.<BR>> <BR>> Can sombody tell what is
wrong?<BR>> <BR>> Thanks<BR>> <BR>> Baoyun<BR>> <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>> http://www.kitware.com/opensource/opensource.html<BR>> <BR>> Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ<BR>> <BR>> Follow this link to subscribe/unsubscribe:<BR>> http://www.itk.org/mailman/listinfo/insight-users<BR>> <BR>> <BR>> _____________________________________<BR>> Powered by www.kitware.com<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>> Please keep messages on-topic and check the ITK FAQ at: <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>--Gaëtan Lehmann<BR>Biologie du Développement et de la Reproduction<BR>INRA de Jouy-en-Josas (France)<BR>tel: +33 1 34 65 29 66 fax: 01 34 65 29 09<BR>http://voxel.jouy.inra..fr http://www.mandriva.org<BR>http://www.itk.org http://www.clavier-dvorak.org<BR><BR></DIV></DIV></div><br>
</body></html>