<br><div><span class="gmail_quote">On 3/22/07, <b class="gmail_sendername">David Feng</b> <<a href="mailto:dfeng@cs.unc.edu">dfeng@cs.unc.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Makes sense. It seems then that I have a problem with my vtkImageActor,<br>as it really ought to have only one scalar component. When I step<br>through the renderer it apparently ends up having 4 components, even<br>though it was initialized with a single-component vtkImageData.
</blockquote><div><br>You are probably sticking a vtkImageMapToColors inadvertantly somewhere in your
pipeline. You will have that if you use ImageViewer2, it transforms the input data through a lookup table map. <br><br>If this is the case, you need to use SetOutputFormatToLuminance on it. The
default behaviour of this class is to transform input to RGBA data.<br><br>--<br>karthik<br></div><br></div><br>