imread: readable max size [closed]
What is the maximum image size that OpenCV can read when using:
img=cv2.imread('image.jpg')
P.S. Suppose I have enough RAM
What is the maximum image size that OpenCV can read when using:
img=cv2.imread('image.jpg')
P.S. Suppose I have enough RAM
Asked: 2016-02-28 09:20:10 -0600
Seen: 3,195 times
Last updated: Feb 28 '16
Understand the memory managment while using imread() on allocated Mat
Problem Reading PNG with Transparency layer
Imread in Android OpenCV shows an image with too much blue colour
can't imread or imwrite in python
OpenCV Java API: Highgui.imread() and paths pointing to files in a jar
have a look at this post
Thank you, but I did before asking. It does not answer this question though.
So have a look in opencv code. I think memory is allocated at line 417 of matrix.cpp. After debugging I find everything is done in alloc.cpp. There are many #if in this file. In my configuration I use CV_USE_SYSTEM_MALLOC and memory allocation is done using malloc in function fastMalloc. There is two fastMalloc function .
In my configuration memory is limited by malloc If I want to know this limit I have to read VS 2013 doc and windows 10.
There is another limit height and width are of type Size.
Thank you for the effort. I will need to dive deeper into the hints you gave me