So what i'm basically trying to do is converting the pixel in image to the color i want, i'm not finding anything in openCV for java , the only way i come up with is this :
     for (int i = 0; i < image.cols(); i++) {
     for (int j = 0; j < image.rows(); j++) {
     double[] data = image.get(i, j);
     data[0] = 255;
     data[1] = 255;
     data[2] = 255;
     image.put(i, j, data);
     }
     }
     Utils.matToBitmap(image, bmp);
     return bmp;;
trying to imtate this c++ code in java, but its not working
 
    