<div dir="ltr">Hi Prashanth,<div><br></div><div>VTK uses glLoadMatrix and glMultMatrix to load the view transforms, but whether these are used, versus glScale, has no impact on image quality.</div><div><br></div><div>Instead, image display quality is a result of what filtering is used when drawing the image. When image interpolation is turned on in VTK (which is the default) the following OpenGL calls are made as part of the texture display pipeline:</div><div><br></div><div><div> glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);</div><div> glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);</div><div><br></div><div>If ITK-SNAP uses textures to display images, these functions should also work there.</div><div><br></div><div> - David</div><div><br></div><div>* Note: VTK is rapidly moving to a new OpenGL implementation where shader programs are used, rather than calls to glLoadMatrix and glTexParameter.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 7, 2015 at 8:13 AM, Prashanth <span dir="ltr"><<a href="mailto:prashanth.dumpuri@gmail.com" target="_blank">prashanth.dumpuri@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">All,<div><br><div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px">I recently discovered ITK-SNAP and have noticed that ITK-SNAP produces a pixelated image (poor quality image) when zooming in the 2D image views. I'm just doing a 2x zoom in ITK-SNAP but the image looks really pixelated after zooming in. </div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px">In my opinion VTK Image viewer produces better looking images. My CT image is of size 832 x 832 x 265 (0.8mm slice thickness). So, it's not lack of data in the input image that's causing pixelated displays. I don't know how VTK handles zooming but as I understand it, glScalef is the function in ITK-SNAP handling zoom. </div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px">How does VTK handle 'zoom in' ? Is there something I can do to improve the quality in ITK-SNAP? </div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px">P.S. I have asked ITK-SNAP a similar question about 'zooming in' and glScalef. I'm posting here because I would like to know how VTK handles 'zooming in' and also in my limited experience with ITK-SNAP, the response time in VTK users mailing list is quicker.</div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline"><br></span></div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline">Thanks</span></div><span class=""><font color="#888888"><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px"><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline">Prashanth</span></div></font></span></div></div></div>
</blockquote></div><br></div></div></div>