[vtkusers] Extract one Image-Channel as a grayscale Image
list at kobenetz.de
list at kobenetz.de
Tue Apr 24 09:37:00 EDT 2007
Hi,
I have Image-Data with 2 Channels.
How can I use only one Channel?
I'm looking for a filter similar to this imaginary one:
---- Imagined Code:
// Select the 2nd Channel (green) as input
imageSelectChannel->SetInput( RGBImage->GetOutput() );
imageSelectChannel->SetChannel(2);
// use the as input as a grayascale Image
grayImage->SetInput( imageSelectChannel->GetOutout() );
----
Thanks,
Chriistoph
More information about the vtkusers
mailing list