imread: readable max size [closed]

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

begueradj gravatar image

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

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


P.S. Suppose I have enough RAM

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-09-27 09:15:57.067816


have a look at this post

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

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

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

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 -0600 )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 -0600 )edit