Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

OpenCV4Android - Utils.loadResource loading in a greater than 8bit image

$
0
0
private Mat loadMatFromResource(int resource) { Mat image = new Mat(); try { image = Utils.loadResource(getApplicationContext(), resource, Highgui.CV_LOAD_IMAGE_UNCHANGED); } catch(IOExecption e) { Log.e(TAG, "IOExecption: " + e); } return image; } Now that kind of works. As in above does load in the image but it's loading in a 48bit image as an CV_8UC3 which to my understanding is an 8bit image with 3 unsigned channels. Is there are way to improve what I have so it actually will load in the full 48bits? I made the assumption that CV_LOAD_IMAGE_UNCHANGED would load in the image as it was with out doing any weird conversions but here we are... Can anyone shed some light on why it's doing what it's doing or how to fix what I have? Thanks.

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>