<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi, <BR>
&nbsp;<BR>
what does this part do ?<BR>
it&nbsp;is specifying two points in the region? right?<BR>
i already have both my points. <BR>
&nbsp;<BR>
thanks <BR>&nbsp;<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>&lt;<A href="mailto:xlolla28x@hotmail.com">xlolla28x@hotmail.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE class=ecxgmail_quote style="PADDING-LEFT: 1ex; BORDER-LEFT: #ccc 1px solid">
<DIV>Hello, <BR>&nbsp;<BR>yes&nbsp;I did. <BR>But got confused because I already found&nbsp;a region in my image previously using labels, so i dont need to create a new image&nbsp;and find a region, so i thought that I only need LineConstIterator ?right ?&nbsp;or this works differently?<BR>also, <BR>is it right to write my&nbsp;point this way? (..,..)?<BR>&nbsp;<BR>Thansk for you reply. <BR>&nbsp;<BR>Lamya <BR>
<DIV class=ecxhm>&nbsp;<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>
&nbsp;
  itk<SPAN class=ecxsy4>::</SPAN><SPAN class=ecxme2>LineIterator</SPAN><SPAN class=ecxsy1>&lt;</SPAN>ImageType<SPAN class=ecxsy1>&gt;</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>