1 | initial version |
Basically what are you trying to do? As far as I can see you are trying to push CV_8UC3 data into a Matrix of vectors. However, I do not see why you would do that. The resulting _orange still takes the orange.type which is 3 channels.
Try changing the orange.type() into CV_8UC1, which tells you want to store vector data into a single channel matrix with vectors.