[Insight-users] Get the image coordinate position

yasser salman yass71 at yahoo.com
Sat Dec 2 16:30:42 EST 2006


Hi all,
I'm using a vtkimageplaneWidget to display 2D images and use itk-connected threshold filter to segment the regions in the images , so i set the seed manually , i need to do it by using 
 vtkImagePlaneWidget::GetCursorData  (  double  xyzv[4]   )   To    Get the image coordinate position and voxel value. and then put it in the ITK filters.
 
i don't know how can i use it?
 
------------------------example---------------
vtkImagePlaneWidget *axialColors=  vtkImagePlaneWidget::New(); 

- axialColors->SetInput(imageData);
........
-double data[4];
  if (axialColors->GetCursorDataStatus())
   axialColors->GetCursorData(data);
 
-----------------------------------
is it the right way? to do ?
 
regards
yasser


 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com


More information about the Insight-users mailing list