extract pixel values in images raw by raw c++ [closed]
Hi, I need to extract rows of an image(size 640x480) as arrays without using for loops. please refer the image attached. please tell me how to do that.thanks
like this?
uchar* yellow_array=src.ptr<uchar>(0); uchar* orange_array=src.ptr<uchar>(1); uchar* green_array=src.ptr<uchar>(2); uchar* brown_array=src.ptr<uchar>(3);
it's entirely unclear, what you're trying to achieve with it, or what you need it for (thus a possible XY problem)
please explain ?
opencv's cv:::Mat has a convenient
row()
member. is that what you're looking for ?hi @gino0717, this is what i was looking for, thank you very much for your reply.