<div dir="ltr">How about using the vtkSeedWidget for placing points?<br><br>Here is an example: <a href="http://www.vtk.org/Wiki/VTK/Examples/Widgets/vtkSeedWidget">http://www.vtk.org/Wiki/VTK/Examples/Widgets/vtkSeedWidget</a><br>
<br><br>Prathamesh<br><br>Message: 3<br>
Date: Fri, 23 Jul 2010 04:31:17 -0700 (PDT)<br>
From: Malsoaz James <<a href="mailto:jmalsoaz@yahoo.fr">jmalsoaz@yahoo.fr</a>><br>
Subject: [vtkusers] Re : Displaying points on a 2D image<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Trystan
Louboutin <<a href="mailto:tanstry@gmail.com">tanstry@gmail.com</a>><br>
Message-ID: <<a href="mailto:151153.72822.qm@web28312.mail.ukl.yahoo.com">151153.72822.qm@web28312.mail.ukl.yahoo.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi,<br>
<br>
I have been facing similar problems few weeks ago.<br>
A solution has been to create a vtkImageData for each set of points I
had (in my case, it was contours). Then, I have used a vtkTexture to
paste the vtkImageData on the image (which was also a texture).<br>
To my mind, this isn't ideal at all, but I didn't find any other
solutions and I'm still looking for something else.<br>
<br>
I hope someone could help us with this issue.<br>
<br>
Best<br>
James<br>
<br>
--- En date de?: Mer 21.7.10, Trystan Louboutin <<a href="mailto:tanstry@gmail.com">tanstry@gmail.com</a>> a ?crit?:<br>
<br>
De: Trystan Louboutin <<a href="mailto:tanstry@gmail.com">tanstry@gmail.com</a>><br>
Objet: [vtkusers] Displaying points on a 2D image<br>
?: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Date: Mercredi 21 juillet 2010, 17h13<br>
<br>
Hi vtk users,<br>
<br>
I want to display some points over a 2D-image, it displays fine but the
problem is that the points and image are not linked together.<br>
In fact, I want the points to be associated with the image so that zoom<br>
in/out will affect the image either the points, which is not the case<br>
actually.<br>
<br>
The image is obtained by re-slicing a vtkData volume as vtkImageData and
displayed in a QVTKWidget.<br>
<br>
For displaying the points, I use :<br>
vtkPoints : defines the points<br>
vtkCellArray : to link points<br>
<br>
vtkPolyData : setPoints( theVtkPoints ) - setVerts( theCellArray )<br>
vtkActor2D<br>
vtkPolyData2DMapperAdd the actor to the renderer (same as image)<br>
The points (ie, representing a contour) are visible over the image but
not superposing it correctly (coordinates are mismatching).<br>
<br>
<br>
I would like to know how to display some points (displayed in different
colors) on a vtkImageActor ?<br>
Is the vtkImageActorPointPlacer suitable for this kind of thing ? I
can't find any satisfactory example on how using it in such a case...<br>
<br>
<br>
Thanks in advance for any help,<br>
<br>
Regards,<br>
Trystan<br>
<br>
<br>
<br>
<br>
<br>
-----La pi?ce jointe associ?e suit-----<br>
<br>
______________________________<div id=":1j" class="ii gt">_________________<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div>