<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Mengchen Zhu</b> <<a href="mailto:mengchen.zhu@gmail.com">mengchen.zhu@gmail.com</a>><br>Date: Wed, Apr 16, 2008 at 3:46 PM<br>
Subject: Re: [vtkusers] vtkImagePlaneWidget transparent slice?<br>To: David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br><br>
<br>Hi,<br><br>Thanks David. It didn't work when I set it to (0,1,2), but worked when I set it to (0) only... This is weird because if the first 3 components from output of reader are R, G, B values, I shouldn't get grey-level image when only extracting first channel. It looks more like YGrGb or something like that... Anyway thanks.<br>
<font color="#888888">
<br>Mengchen</font><div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Wed, Apr 16, 2008 at 1:08 PM, David Gobbi <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This transparency problem should only happen if your TIFF (or BMP)<br>
files are actually 32-bit RGBX format instead of the 24-bit RGB that<br>
you are expecting. The forth component "X", if present, will be used<br>
as transparency by the ImagePlaneWidget. Unless you are completely<br>
certain that your images are really RGB and not RGBX, you can try<br>
using vtkImageExtractComponents with SetComponents(0,1,2). That will<br>
get rid of the fourth component, if it exists.<br>
<br>
David<br>
<div><div></div><div><br>
<br>
On Wed, Apr 16, 2008 at 3:43 PM, Mengchen Zhu <<a href="mailto:acidwind@gmail.com" target="_blank">acidwind@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I've modified ImagePlaneWidget.cxx (under VTK widgets/testing folder) to<br>
> read in series of bmp (or tiff) image files, and display the interpolated<br>
> volume using 3 orthogonal planes. The resliced image can be properly<br>
> displayed using ImageActor; however, the 3 orthogonal planes controlled by<br>
> ImagePlaneWidget are semi-transparent, while if the input are the sample<br>
> 16-bit images(headsq), the planes are opaque. I've tried to change<br>
> parameters of "ipwProp" to set the texture plane property, but still<br>
> couldn't get opaque planes with my dataset.<br>
><br>
> Has anyone seen a similar problem before? By the way, my data files are<br>
> 24-bit BMP images with range 0~255.<br>
><br>
> Thanks,<br>
> Mengchen Zhu<br>
</div></div>> _______________________________________________<br>
> This is the private VTK discussion list.<br>
> Please keep messages on-topic. Check the FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
</blockquote></div><br>
</div></div></div><br>