Reputation: 75
I want to know if I can can subtract an 2 channel Image with an GreyVal Image. I know that normally you have to subtract each channel alone but one of the images contains thickness information of an object in mm which i converted to rgb values and then I had to use 2 channels because the range goes from 0.001 mm to 1.8 mm so I multiplied the values with 1000 and put them in an image. The other one is an normal greyVal Image. Do you have any ideas?
Upvotes: 1
Views: 675
Reputation: 10852
If I understand you question correct, you'd better put your thickness values to one channel CV_32F or CV_64F image. It'll be easier to manipulate with real numbers. If you want to subtract some CV_8U gray image from it, you have to convert it to type of first one.
Upvotes: 1