<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi, <BR>
<BR>
what does this part do ?<BR>
it is specifying two points in the region? right?<BR>
i already have both my points. <BR>
<BR>
thanks <BR> <BR>
<HR id=stopSpelling>
Date: Thu, 21 Apr 2011 11:08:38 -0400<BR>Subject: Re: [Insight-users] drawing a line<BR>From: daviddoria@gmail.com<BR>To: xlolla28x@hotmail.com; insight-users@itk.org<BR><BR>
<DIV class=ecxgmail_quote>2011/4/21 LaMoOsH .. <SPAN dir=ltr><<A href="mailto:xlolla28x@hotmail.com">xlolla28x@hotmail.com</A>></SPAN><BR>
<BLOCKQUOTE class=ecxgmail_quote style="PADDING-LEFT: 1ex; BORDER-LEFT: #ccc 1px solid">
<DIV>Hello, <BR> <BR>yes I did. <BR>But got confused because I already found a region in my image previously using labels, so i dont need to create a new image and find a region, so i thought that I only need LineConstIterator ?right ? or this works differently?<BR>also, <BR>is it right to write my point this way? (..,..)?<BR> <BR>Thansk for you reply. <BR> <BR>Lamya <BR>
<DIV class=ecxhm> <BR></DIV></DIV></BLOCKQUOTE>
<DIV><BR>Please keep the discussion on the list. It looks like you're missing the part about making the points into an ImageType::IndexType -<BR><BR></DIV>
<DIV><PRE class=ecxde1> ImageType<SPAN class=ecxsy4>::</SPAN><SPAN class=ecxme2>IndexType</SPAN> corner1 <SPAN class=ecxsy1>=</SPAN> region.<SPAN class=ecxme1>GetIndex</SPAN><SPAN class=ecxbr0>(</SPAN><SPAN class=ecxbr0>)</SPAN><SPAN class=ecxsy4>;</SPAN>
ImageType<SPAN class=ecxsy4>::</SPAN><SPAN class=ecxme2>IndexType</SPAN> corner2<SPAN class=ecxsy4>;</SPAN>
corner2<SPAN class=ecxbr0>[</SPAN><SPAN class=ecxnu0>0</SPAN><SPAN class=ecxbr0>]</SPAN> <SPAN class=ecxsy1>=</SPAN> corner1<SPAN class=ecxbr0>[</SPAN><SPAN class=ecxnu0>0</SPAN><SPAN class=ecxbr0>]</SPAN> <SPAN class=ecxsy2>+</SPAN> region.<SPAN class=ecxme1>GetSize</SPAN><SPAN class=ecxbr0>(</SPAN><SPAN class=ecxbr0>)</SPAN><SPAN class=ecxbr0>[</SPAN><SPAN class=ecxnu0>0</SPAN><SPAN class=ecxbr0>]</SPAN> <SPAN class=ecxsy2>-</SPAN> <SPAN class=ecxnu0>1</SPAN><SPAN class=ecxsy4>;</SPAN>
corner2<SPAN class=ecxbr0>[</SPAN><SPAN class=ecxnu0>1</SPAN><SPAN class=ecxbr0>]</SPAN> <SPAN class=ecxsy1>=</SPAN> corner1<SPAN class=ecxbr0>[</SPAN><SPAN class=ecxnu0>1</SPAN><SPAN class=ecxbr0>]</SPAN> <SPAN class=ecxsy2>+</SPAN> region.<SPAN class=ecxme1>GetSize</SPAN><SPAN class=ecxbr0>(</SPAN><SPAN class=ecxbr0>)</SPAN><SPAN class=ecxbr0>[</SPAN><SPAN class=ecxnu0>1</SPAN><SPAN class=ecxbr0>]</SPAN> <SPAN class=ecxsy2>-</SPAN> <SPAN class=ecxnu0>1</SPAN><SPAN class=ecxsy4>;</SPAN>
itk<SPAN class=ecxsy4>::</SPAN><SPAN class=ecxme2>LineIterator</SPAN><SPAN class=ecxsy1><</SPAN>ImageType<SPAN class=ecxsy1>></SPAN> it<SPAN class=ecxbr0>(</SPAN>image, corner1, corner2<SPAN class=ecxbr0>)</SPAN><SPAN class=ecxsy4>;<BR>
<BR></SPAN></PRE><BR clear=all>David <BR></DIV></DIV><BR>                                            </body>
</html>