| 1 | initial version |
Use Mat::convertTo():
Mat mDist32S = new Mat();
mDist.convertTo(mDist32S, CvType.CV_32S);
As for the matToBitmap() - it can convert 8UC1 and 8UC4 Mat-s only. So to display a float point image you need convertTo(CvType.CV_8U), then to Bitmap.