Histogram size
Hi there! I'm trying to make a histogram of a picture preview from the camera of an android in Portrait mode 1080x1440. The problem is that where i want to show the histogram is ImageView with size 1080x115. The result histogram now is 1080x1440 and if i scale it to fit 1080x115, the lower part of the hist is barely observed. How can i make the proper histogram preview to my desired size?
please show (code), what you're doing here.
private void drawHistogram(Bitmap bitmap) { try { Mat rgba = new Mat(); Utils.bitmapToMat(bitmap, rgba);
// org.opencv.core.Size rgbaSize = new org.opencv.core.Size(histogramView.getWidth(), histogramView.getHeight()); int histSize = 256; MatOfInt histogramSize = new MatOfInt(histSize);
(more)