<div dir="ltr">I would be surprised if vtkSeedWidget cannot be used to place pre-defined points on an image.<br><br>You can flip vtkImageData using vtkImageFlip.<br><br><br>Prathamesh<br><br><div class="gmail_quote">On Tue, Jul 27, 2010 at 2:38 AM, Trystan Louboutin <span dir="ltr"><<a href="mailto:tanstry@gmail.com">tanstry@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br><br>Thanks all for replying.<br><br>In fact, I don't want to manually place points over the image but just displaying some points I obtained by my own contours computation.<br>
<br>I think my problem comes from the image displaying: the references between image and contour display are mismatching.<br>
(the contours points are not superposing well the image)<br><br>Image reference origin: upper left<br>---------------> X<br>|<br>|<br>|<br>|<br>Y<br><br>Contours points reference origin: lower left<br>Y<br>|<br>|<br>|<br>
|--------------> X<br><br>Is there any parameter to configure to flip my image (vtkImageActor) or my contours (vtkActor2D) so that their references match ?<br><br>Regards,<br>Trystan<br><br><br><br><div class="gmail_quote">
2010/7/23 Prathamesh Kulkarni <span dir="ltr"><<a href="mailto:prathameshmkulkarni@gmail.com" target="_blank">prathameshmkulkarni@gmail.com</a>></span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<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" target="_blank">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" target="_blank">jmalsoaz@yahoo.fr</a>><br>
Subject: [vtkusers] Re : Displaying points on a 2D image<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>, Trystan
Louboutin <<a href="mailto:tanstry@gmail.com" target="_blank">tanstry@gmail.com</a>><br>
Message-ID: <<a href="mailto:151153.72822.qm@web28312.mail.ukl.yahoo.com" target="_blank">151153.72822.qm@web28312.mail.ukl.yahoo.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<div><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></div>
--- En date de?: Mer 21.7.10, Trystan Louboutin <<a href="mailto:tanstry@gmail.com" target="_blank">tanstry@gmail.com</a>> a ?crit?:<div><br>
<br>
De: Trystan Louboutin <<a href="mailto:tanstry@gmail.com" target="_blank">tanstry@gmail.com</a>><br>
Objet: [vtkusers] Displaying points on a 2D image<br>
?: <a href="mailto:vtkusers@vtk.org" target="_blank">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></div>
vtkPolyData2DMapperAdd the actor to the renderer (same as image)<div><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></div>
-----La pi?ce jointe associ?e suit-----<div><br>
<br>
______________________________<div>_________________<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></div>
</blockquote></div></div></div><br>
</blockquote></div><br></div>