I had a job interview recently about image processing stuff, in that interview they had a question about convert RGB space to Gray Space(it's an easy question in first thought) so I answered: we can performed this task by using below equation:
Gray = 0.299 * R + 0.578 * G + 0.114 * B
but one of them said it's not true and he proposed below equation:
Gray=(R+G+B)/3
but I had seen my proposed equation before in this link and this and I said, of course, we can take average in channels but first one gave better performance and we argued about it, after a while one of them said in CMOS and CCD cameras this converting is different. is that true?
Thanks