<div dir="ltr">I made a mistake in my last email, it should be "rightmost and topmost pixels".</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 4, 2014 at 9:32 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Ricardo,<div><br></div><div>Thanks for the feedback. In the image that you attached, the pixels are twice as large as the "jaggies" of the contour, so I'm not sure how it would be possible for them to match exactly?</div><div><br></div><div>That diagram for polygon scan conversion is an accurate depiction of what vtkPolyDataToImageStencil does if you call SetTolerance(0.0) and the contour passes exactly through the centre of a voxel. If the tolerance is greater than zero, then leftmost and topmost pixels would also be included.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div> - David</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 4, 2014 at 9:17 AM, Ricardo A Corredor <span dir="ltr"><<a href="mailto:ra.corredor@gmail.com" target="_blank">ra.corredor@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
<br>
I didn't reply when you submit this change, but I confirm that it works well<br>
!! Thanks<br>
<br>
However, I still have a question. Please look the following image:<br>
<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/n5729677/PolydataToImage.jpg" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5729677/PolydataToImage.jpg</a>><br>
<br>
There are some voxels inside the polydata that are not included in the final<br>
mask. Is it a problem on the way they are calculated? Probably a shift when<br>
considering the voxel inside the contour (something like what is shown here<br>
<a href="http://guy-grave.developpez.com/tutoriels/hardware/les-cartes-graphiques/pipeline-non-programmable/rasterization/images/Polygon_scan-conversion.svg" target="_blank">http://guy-grave.developpez.com/tutoriels/hardware/les-cartes-graphiques/pipeline-non-programmable/rasterization/images/Polygon_scan-conversion.svg</a>)?<br>
<br>
Thank you again and have a good day.<br>
<br>
<br>
Ricardo<br>
RaC<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Fixing-vtkPolyDataToImageStencil-tp5728811p5729677.html" target="_blank">http://vtk.1045678.n5.nabble.com/Fixing-vtkPolyDataToImageStencil-tp5728811p5729677.html</a><br>
<div><div>Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<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://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>