<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,<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="webkit-block-placeholder"></div><div class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">But now I have 2 problems:</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""></div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">- The performance decrease was huge. Is there any way to improve that?</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" 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="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""></div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><a href="http://oi65.tinypic.com/dcga2x.jpg" class="">http://oi65.tinypic.com/dcga2x.jpg</a> - with artifacts</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><a href="http://oi64.tinypic.com/30cuoug.jpg" class="">http://oi64.tinypic.com/30cuoug.jpg</a> - oblique reslicing, without artifacts</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""></div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" 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="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jun 22, 2016, at 12:24, Enzo Matsumiya <<a href="mailto:enzo.matsumiya@gmail.com" class="">enzo.matsumiya@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" 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="Apple-interchange-newline">
</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" class="">sankhesh.jhaveri@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394">Enzo,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394"><br class=""></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394">What do you mean by quality?</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394"><br class=""></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394">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 class="gmail_signature" data-smartmail="gmail_signature"><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:0 0 0 .8ex;border-left:1px #ccc solid;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></body></html>