<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt">Hi David,<br><br>Using VTK 6.0.0, sorry ;-)<br><br>Should I send you the tiff file so you can play with it?<br><br>Now I seem to have your attention:<br><br>- How do I display a multi-page tif? I don't seem to see the different images using a vtkImageSlice.<br><br>- What would be good values for the window and level parameters? I am using window = range[1]-range[0] and level = 0.5*(range[0]+range[1]) which works ok for this multi-page tif, but gets me nowhere when I try to display a drr.<br><br>Thanks - Maarten<br><br><br><div><span><br></span></div><div style="display: block;" class="yahoo_quoted"> <br> <br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica,
Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Friday, November 8, 2013 4:23:23 PM, David Gobbi <david.gobbi@gmail.com> wrote:<br> </font> </div> <div class="y_msg_container">Hi Maarten,<br clear="none"><br clear="none">Which version of VTK are you using? I believe that this bug has been<br clear="none">fixed in the master branch by a commits in the following topic merge:<br clear="none"><a shape="rect" href="http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=7e3d5270" target="_blank">http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=7e3d5270</a><br clear="none"><br clear="none">It was not fixed in time for VTK 5.10, however.<br clear="none"><br clear="none"> David<br clear="none"><br clear="none"><div class="yqt2192303351" id="yqtfd87632"><br clear="none">On Fri, Nov 8, 2013 at 2:12 PM, Maarten Beek <<a shape="rect" ymailto="mailto:beekmaarten@yahoo.com"
href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>> wrote:<br clear="none">> Hi all,<br clear="none">><br clear="none">> vtkTIFFReader crashed for me while loading a multi-paged tiff file.<br clear="none">><br clear="none">> The crash occured in vtkTIFFReader::ReadGenericImage(), because<br clear="none">> this->OutputExtent was not set (still NULL).<br clear="none">> The scalar type for the image I was loading was unsigned short, so it<br clear="none">> happened at line 1368.<br clear="none">><br clear="none">> I changed void vtkTIFFReader::ReadVolume(void* buffer) into void<br clear="none">> vtkTIFFReader::ReadVolume(void* buffer, int outExt[6]) and added the line<br clear="none">> this->outputExtent = outExt.<br clear="none">><br clear="none">> This solved my crash.<br clear="none">> I am not sure I am on to something, but thought to let you know.<br clear="none">><br
clear="none">> Maarten<br clear="none"></div><br><br></div> </div> </div> </div> </div></body></html>