<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi David.<div class=""><br class=""></div><div class="">Cubic interpolation did it.</div><div class="">I'll take a look into Sinc again in the future.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thank you.</div><div class=""><div class=""><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jun 23, 2016, at 11:25, David Gobbi <<a href="mailto:david.gobbi@gmail.com" class="">david.gobbi@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi Enzo,</div><div class=""><br class=""></div><div class="">The artifact might be due to this bug, which was recently fixed in the master branch:</div><div class=""><br class=""></div><a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/1279" class="">https://gitlab.kitware.com/vtk/vtk/merge_requests/1279</a><div class=""><br class=""></div><div class="">Cubic interpolation is much faster than Sinc.<br class=""></div><div class=""><br class=""></div><div class=""> - David<br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Jun 23, 2016 at 7:34 AM, Enzo Matsumiya <span dir="ltr" class=""><<a href="mailto:enzo.matsumiya@gmail.com" target="_blank" class="">enzo.matsumiya@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class="">Hi,<div class=""><br class=""></div><div class="">I got the result I wanted (quality-wise) adding a vtkImageSincInterpolator to the image reslice within vtkResliceCursorRepresentation. I think the default was using the nearest neighbor algorithm.</div><div class=""><div class=""><br class=""></div><div class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">But now I have 2 problems:</div><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><br class=""></div><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">- The performance decrease was huge. Is there any way to improve that?</div><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">- Here are 2 images showing my second issue. There are artifacts *only* in orthogonal slices, and also only in coronal and sagittal. The artifacts are gone when I oblique reslice:</div><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><br class=""></div><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><a href="http://oi65.tinypic.com/dcga2x.jpg" target="_blank" class="">http://oi65.tinypic.com/dcga2x.jpg</a> - with artifacts</div><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><a href="http://oi64.tinypic.com/30cuoug.jpg" target="_blank" class="">http://oi64.tinypic.com/30cuoug.jpg</a> - oblique reslicing, without artifacts</div><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><br class=""></div><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">I'm guessing it's a bug in the interpolator because it really looks like some mathematical bug, but I could be wrong of course.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Can anyone help me out?</div><br class="">
</div><div class=""><div class="h5">
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jun 22, 2016, at 12:24, Enzo Matsumiya <<a href="mailto:enzo.matsumiya@gmail.com" target="_blank" class="">enzo.matsumiya@gmail.com</a>> wrote:</div><br class=""><div class=""><div style="word-wrap:break-word" class="">Hi Sankhesh,<div class=""><br class=""></div><div class="">Thanks for the reply.</div><div class=""><br class=""></div><div class="">By quality I mean that the first image looks crispy, while the second one looks very smooth.</div><div class="">But now that you said, I will see if I can find any data type inconsistency accross my code.</div><div class=""><br class=""></div><div class="">ManageWindowLevel is enabled on vtkResliceCursorWidget.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks again,</div><div class=""><br class=""></div><div class="">Enzo<br class=""><div class=""><br class="">
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jun 22, 2016, at 11:59, Sankhesh Jhaveri <<a href="mailto:sankhesh.jhaveri@kitware.com" target="_blank" class="">sankhesh.jhaveri@kitware.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class=""><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)" class="">Enzo,</div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)" class=""><br class=""></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)" class="">What do you mean by quality?</div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)" class=""><br class=""></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)" class="">Looking at the two images, the resolution looks the same to me. I see there is a difference in the range of pixel values between the two images. This could either be due to the data type differences in the output image or actual data value differences. Do you have ManageWindowLevel enabled for vtkResliceCursorWidget?</div><div class="gmail_extra"><div class=""><div data-smartmail="gmail_signature" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><br class=""></div><span style="color:rgb(11,83,148)" class=""><span style="font-family:verdana,sans-serif" class="">Sankhesh</span></span><div class=""><b class=""></b><br class=""> </div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br class=""><div class="gmail_quote">On Wed, Jun 22, 2016 at 10:49 AM, Enzo Matsumiya <span dir="ltr" class=""><<a href="mailto:enzo.matsumiya@gmail.com" target="_blank" class="">enzo.matsumiya@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class="">Hi,<div class=""><br class=""></div><div class="">I'm using vtkResliceCursorWidget for oblique reslicing on a CT set.</div><div class="">But I'm getting really bad image quality. Here is an example from my app:</div><div class=""><br class=""></div><div class=""><a href="http://oi68.tinypic.com/1z55cop.jpg" target="_blank" class="">http://oi68.tinypic.com/1z55cop.jpg</a></div><div class=""><br class=""></div><div class="">And here is one (although non-oblique) from other software:</div><div class=""><br class=""></div><div class=""><a href="http://oi68.tinypic.com/2lidi6p.jpg" target="_blank" class="">http://oi68.tinypic.com/2lidi6p.jpg</a></div><div class=""><br class=""></div><div class="">I would like to know if there's a way to improve the quality on my app.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks</div></div><br class="">_______________________________________________<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank" class="">http://www.vtk.org/Wiki/VTK_FAQ</a><br class="">
<br class="">
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank" class="">http://markmail.org/search/?q=vtkusers</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank" class="">http://public.kitware.com/mailman/listinfo/vtkusers</a><br class="">
<br class=""></blockquote></div><br class=""></div></div>
</div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></div></div><br class="">_______________________________________________<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank" class="">http://www.vtk.org/Wiki/VTK_FAQ</a><br class="">
<br class="">
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank" class="">http://markmail.org/search/?q=vtkusers</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank" class="">http://public.kitware.com/mailman/listinfo/vtkusers</a><br class="">
<br class=""></blockquote></div><br class=""></div></div></div></div></div>
</div></blockquote></div><br class=""></div></body></html>