<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Mengchen Zhu</b> &lt;<a href="mailto:mengchen.zhu@gmail.com">mengchen.zhu@gmail.com</a>&gt;<br>Date: Wed, Apr 16, 2008 at 3:46 PM<br>
Subject: Re: [vtkusers] vtkImagePlaneWidget transparent slice?<br>To: David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;<br>Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br><br>
<br>Hi,<br><br>Thanks David. It didn&#39;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&#39;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 &lt;<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>&gt; 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. &nbsp;The forth component &quot;X&quot;, if present, will be used<br>
as transparency by the ImagePlaneWidget. &nbsp;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). &nbsp;That will<br>
get rid of the fourth component, if it exists.<br>
<br>
 &nbsp; &nbsp;David<br>
<div><div></div><div><br>
<br>
On Wed, Apr 16, 2008 at 3:43 PM, Mengchen Zhu &lt;<a href="mailto:acidwind@gmail.com" target="_blank">acidwind@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I&#39;ve modified ImagePlaneWidget.cxx (under VTK widgets/testing folder) to<br>
&gt; read in series of bmp (or tiff) image files, and display the interpolated<br>
&gt; volume using 3 orthogonal planes. The resliced image can be properly<br>
&gt; displayed using ImageActor; however, the 3 orthogonal planes controlled by<br>
&gt; ImagePlaneWidget are semi-transparent, while if the input are the sample<br>
&gt; 16-bit &nbsp;images(headsq), the planes are opaque. I&#39;ve tried to change<br>
&gt; parameters of &quot;ipwProp&quot; to set the texture plane property, but still<br>
&gt; couldn&#39;t get opaque planes with my dataset.<br>
&gt;<br>
&gt; Has anyone seen a similar problem before? By the way, my data files are<br>
&gt; 24-bit BMP images with range 0~255.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Mengchen Zhu<br>
</div></div>&gt; _______________________________________________<br>
&gt; &nbsp;This is the private VTK discussion list.<br>
&gt; &nbsp;Please keep messages on-topic. Check the FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt; &nbsp;Follow this link to subscribe/unsubscribe:<br>
&gt; &nbsp;<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>
</div></div></div><br>