imread: readable max size

asked 2016-02-28 09:20:10 -0500

begueradj gravatar image

updated 2016-02-28 09:21:52 -0500

What is the maximum image size that OpenCV can read when using:

img=cv2.imread('image.jpg')

P.S. Suppose I have enough RAM

edit retag flag offensive close merge delete

Comments

have a look at this post

LBerger gravatar imageLBerger ( 2016-02-28 10:43:32 -0500 )edit

Thank you, but I did before asking. It does not answer this question though.

begueradj gravatar imagebegueradj ( 2016-02-28 11:25:27 -0500 )edit
1

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.

LBerger gravatar imageLBerger ( 2016-02-28 12:13:11 -0500 )edit

Thank you for the effort. I will need to dive deeper into the hints you gave me

begueradj gravatar imagebegueradj ( 2016-02-28 12:21:47 -0500 )edit