2017-12-04 14:26:03 -0600 | received badge | ● Popular Question (source) |
2013-03-10 09:04:16 -0600 | asked a question | converting 3-channel BGR pic to grayscale BY HAND Hello, I'm having this problem - I have to write a function which converts bgr picture to grayscale one-channel picture. Only things I can use are cv:Mat variables: rows, cols, data and step. I've been trying to solve it this way: } But still this gives me wrong (not whole) picture with many white vertical lines. Do you know whre I'm mistaken in my thinking? Thanks for the answer cz_asm7 |