Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

getting RGB image while dividing 2 gray image

hi, i have two grayscale image. when i am dividing it I am getting RGB image. what wrong i am doing here. while, the same image input i m giving in c++ opencv i am getting gray image but not in andorid.

here is my Android code :-

 Mat contrast = new Mat();
 Core.divide(deviation, imfilter, contrast);
 contrast.convertTo(contrast,CvType.CV_8U,255);

Here is my c++ code :-

Mat mean = cv::imread("C:\\Users\\Intern-3\\Desktop\\total\\imfilter.jpg",0);
Mat dev = cv::imread("C:\\Users\\Intern-3\\Desktop\\total\\stdfilt.jpg",0);

Mat contrast;
divide(dev,mean,contrast,255);

thanks!!