I’m working with QT and OpenCV, I have this square that I need to extract but I need to use conversion from RGB to one channel (RED basically). Any advice will be more than welcome, please feel free to advice which functions to use. Thanks in advance.
Share
I think
cvSplitis what you’re looking for (docs). You can use it, for example, to split RGB into R, G, and B:Note you’ll need to be careful about the ordering; make sure that the original image is actually ordered as R, G, B (there’s a decent chance it’s B, G, R).