<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;"><br></div>You can use a vtkPointWidget to select a point on a 3D object. <br><br>vtkPointWidget *pointWidget = vtkPointWidget::New();<br> pointWidget->SetInteractor(renderer->GetRenderWindow()->GetInteractor());<br> pointWidget->SetPlaceFactor(1.25); //this sets the widget to appear a small distance away from the object edges<br> pointWidget->SetProp3D(volume); // this tells the widget to attach itself to (in this case) a vtkVolume called volume<br> pointWidget->PlaceWidget();<br> pointWidget->On();<br><br>You can then get the current xyz coordinates with pointWidget->GetPosition()[0] where 0 is the x coordinate and 1 & 2 are y & z<br><br>Note that the point widget gives you physical coordinates. If you want a pixel index then you need to use the TransformPhysicalPointToIndex function.<br><br>I'm not sure if you can use this on 2D images as well, but I would imagine so.<br><br>Hope this helps a bit.<br><br>Regards,<br>Cameron.<br><div></div><br><br><hr id="stopSpelling">> Date: Wed, 23 Apr 2008 14:14:41 +0200<br>> From: njiwa@biomed.ee.ethz.ch<br>> To: insight-users@itk.org<br>> Subject: [Insight-users] Point Extraction<br>> <br>> Hi everybody,<br>> <br>> I have two images and would like to perfom IterativeClosestPoint on these images. I have a problem because i don't have the coordinate of the points. Is there a way of getting tese points with ITK?<br>> Do somebody help me to solve this problem? I have 2D and 3D images. Thanks a lot.<br>> <br>> Regards,<br>> <br>> Josiane.<br>> _______________________________________________<br>> Insight-users mailing list<br>> Insight-users@itk.org<br>> http://www.itk.org/mailman/listinfo/insight-users<br><br /><hr />Grab it. <a href='http://mycareer.com.au/?s_cid=596065 ' target='_new'>You dream job is up for grabs.</a></body>
</html>