<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>Is it possible to show all images in a multi-paged tiff transparently?<br><br>Only when I show the 1st image (page), I see a 2nd 2d image (both are transparent).<br>As soon as I move to another tiff image (page), the 2d image disappears. It returns when I move back to the 1st tiff page.<br><br>The multi-paged tiff is one component, and I am thinking of an algorithm to add an alpha component, but can hardly believe this would be required...<br><br>The order of adding the actors to the renderer matters, but I try to avoid this by using transparency.<br><br>Moving one image in front of the other by changing its z-coordinate using vtkImageActor::SetPosition() doesn't help.<br><br>Maarten<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 size="2" face="Arial"> On Friday, November 8, 2013 4:36:06 PM, Maarten Beek <beekmaarten@yahoo.com> wrote:<br> </font> </div> <div class="y_msg_container"><div id="yiv4944082950"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;">Hi David,<br clear="none"><br clear="none">Using VTK 6.0.0, sorry ;-)<br clear="none"><br clear="none">Should I send you the tiff file so you can play with it?<br clear="none"><br clear="none">Now I seem to have your attention:<br clear="none"><br clear="none">- How do I display a multi-page tif? I don't seem to see the different images using a vtkImageSlice.<br
clear="none"><br clear="none">- 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 clear="none"><br clear="none">Thanks - Maarten<br clear="none"><br clear="none"><br clear="none"><div><span><br clear="none"></span></div><div class="yiv4944082950yqt7005659835" id="yiv4944082950yqt96914"><div class="yiv4944082950yahoo_quoted" style="display:block;"> <br clear="none"> <br clear="none"> <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 size="2" face="Arial"> On Friday, November 8, 2013 4:23:23 PM, David Gobbi <david.gobbi@gmail.com> wrote:<br clear="none"> </font> </div>
<div class="yiv4944082950y_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 rel="nofollow" shape="rect" target="_blank" href="http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=7e3d5270">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="yiv4944082950yqt2192303351" id="yiv4944082950yqtfd87632"><br clear="none">On Fri, Nov 8, 2013 at 2:12 PM, Maarten Beek <<a rel="nofollow" shape="rect" ymailto="mailto:beekmaarten@yahoo.com" target="_blank" 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 clear="none"><br clear="none"></div> </div> </div> </div></div> </div></div></div><br><div
class="yqt7005659835" id="yqt16962">_______________________________________________<br clear="none">Powered by www.kitware.com<br clear="none"><br clear="none">Visit other Kitware open-source projects at <a shape="rect" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br clear="none"><br clear="none">Please keep messages on-topic and check the VTK FAQ at: <a shape="rect" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none"><br clear="none">Follow this link to subscribe/unsubscribe:<br clear="none"><a shape="rect" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br clear="none"></div><br><br></div> </div> </div> </div> </div></body></html>