<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">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&nbsp;: <b>Mer 21.7.10, Trystan Louboutin <i>&lt;tanstry@gmail.com&gt;</i></b> a écrit&nbsp;:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: Trystan Louboutin &lt;tanstry@gmail.com&gt;<br>Objet: [vtkusers] Displaying points on a 2D image<br>À: vtkusers@vtk.org<br>Date: Mercredi 21 juillet 2010, 17h13<br><br><div
 id="yiv382136321">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 
in/out will affect the image either the points, which is not the case 
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><ol><li>vtkPoints : defines the points<br></li><li>vtkCellArray : to link points<br>
</li><li>vtkPolyData : setPoints( theVtkPoints ) - setVerts( theCellArray ) <br></li><li>vtkActor2D<br></li><li>vtkPolyData2DMapper</li><li>Add the actor to the renderer (same as image)<br></li></ol>The points (ie, representing a contour) are visible over the image but not superposing it correctly (coordinates are mismatching).<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>Thanks in advance for any help,<br><br>Regards, <br>Trystan <br><br><br><br>
</div><br>-----La pièce jointe associée suit-----<br><br><div class="plainMail">_______________________________________________<br>Powered by www.kitware.com<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></blockquote></td></tr></table><br>