<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
ok Arpit...I think that there is a problem because I can't run a code without the main (and the code that you suggested me doesn't have the main...) .<br>The problem is that I'm a starter in C++ and so, I don't understand how use that code. Usually I download file.h, I include them in my main program and everything runs perfectly. Now I have downloaded a file.cxx that starts as a main and so I'm not able to use it....<br><br>Sorry for my, maybe, stupid question...<br><br>Regards<br>Daniela<br><br><br><hr id="stopSpelling">From: arpit392@gmail.com<br>Date: Thu, 26 Aug 2010 14:22:18 +0530<br>Subject: Re: [Insight-users] Matlab bwlabeln in itk<br>To: danysunflower@hotmail.it<br><br>I guess you didnt change "int itkConnectedComponentImageFilterTest(int argc, char* argv[] )" to "int main( int argc, char* argv[])".....<div><br></div><div>thats a testing codes...you need to make a few changes before u run them....</div>
<div><br></div><div><div><br><div class="ecxgmail_quote">On Thu, Aug 26, 2010 at 1:41 PM, Daniela Sacchetto <span dir="ltr"><<a href="mailto:danysunflower@hotmail.it">danysunflower@hotmail.it</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
Hi, firstly, thank you for your reply.<br><br>I'm trying to run the code you suggested me to understand how it works but I find a problem that I've never had and that it a little strange in my opinion.<br>This is the error that I have:<br>
<br>/usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib/crt1.o: In function `_start':<br>/build/buildd/eglibc-2.10.1/csu/../sysdeps/i386/elf/start.S:115: undefined reference to `main'<br>collect2: ld returned 1 exit status<br>
<br>What does it mean?<br>Could you help me?<br>Thanks<br><font color="#888888">Daniela<br></font><div class="ecxhm"><br><br><br><hr>From: <a href="mailto:arpit392@gmail.com">arpit392@gmail.com</a><br>Date: Thu, 26 Aug 2010 13:23:16 +0530<br>
Subject: Re: [Insight-users] Matlab bwlabeln in itk<br>To: <a href="mailto:danysunflower@hotmail.it">danysunflower@hotmail.it</a></div><div><div></div><div class="h5"><br><br>u can use itkConnectedComponentImageFilterTest.cxx, it performs a similar task...except it associates each label with a different colour, to help visualize the different parts using itkRelabelComponentImageFilter, you can comment this part to get your desired results...<div>
<br></div><div>Cheers,</div><div>Arpit<br><br><div>On Thu, Aug 26, 2010 at 1:15 PM, Daniela Sacchetto <span dir="ltr"><<a href="mailto:danysunflower@hotmail.it">danysunflower@hotmail.it</a>></span> wrote:<br>
<blockquote style="padding-left: 1ex;">
<div>
Hi everyone,<br>I need your help.<br><br>I have to implement a code with similar function to Matlab bwlabeln; Matlab's routine <code>L = bwlabeln(BW)</code> returns a label matrix <code>L</code> containing labels for the connected components in <code>BW</code>; the elements of <code>L</code> are integer values greater than or equal to 0. The pixels labeled 0 are the background.<br>
<br>I looked for similar itk method in itk User's Guide but I didn't find anything... could anyone help me?<br><br>Thanks of all,<br>Daniela<br>                                            </div>
<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></blockquote></div><br><br clear="all"><br>-- <br>Arpit Agrawal<br>Junior Undergraduate, <br>Dual Degree Communication and Signal Processing ,<br>Dept. of Electrical Engg, IITB.<br>
</div>                                            </div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Arpit Agrawal<br>Junior Undergraduate, <br>Dual Degree Communication and Signal Processing ,<br>Dept. of Electrical Engg, IITB.<br>
</div></div>                                            </body>
</html>