<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>typedef itk::Image<unsigned char,
<STRONG>2</STRONG> > ImageType;</FONT></DIV>
<DIV><FONT face=Arial size=2>typedef itk::ImageFileReader< ImageType >
ReaderType;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When I use this reader to read a color image with
(RGB components), how does the pixel information from the three channels of the
original image (R, G and B) get mapped to the 2D image instance I
created?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I suspected that the standard procedure of
converting RGB to gray (Y [luminance] = 0.3R + 0.59G + 0.11B) was done
internally, but the results of tests I made regarding this were slightly
different. I obtained Y = 0.2197R + 0.691G + 0.089B. Was this transformation
purposeful, or, am I doing something wrong?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Many Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Kaushik.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>_________________________________________________________</DIV>
<DIV>Sri Kaushik Pavani<BR>María de Luna, 1. Ed. Ada Byron, D2.03. <BR>Dep. de
Ingeniería Electrónica y Comunicaciones<BR>Centro Polictécnico
Superior<BR>Universidad de Zaragoza<BR>E-50018 Zaragoza. </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>