0

is there any way to increase the stack memory for image processing using C++/OpenCV interface?.... I want to load multiple images (lets say around 100 with each image of size roughly 1 MB) into memory and perform parallel computation on them using GPU.

user3566188
  • 115
  • 5
  • See: http://stackoverflow.com/questions/13944841/how-to-increase-the-maximum-memory-allocated-on-the-stack-heap – Яois May 13 '14 at 08:04
  • And also http://stackoverflow.com/questions/1825964/c-c-maximum-stack-size-of-program?lq=1 – Яois May 13 '14 at 08:04
  • I'm afraid stack has nothing to do with the opencv image manipulations, rather than you should consider heap size because cv::Mat image class is a smart container which allocates memory dynamically, though on a heap not on a stack. And in your case you don't have to worry that 100MB will increase heap size... – marol May 13 '14 at 11:01
  • How should I do this => I want to load multiple images (lets say around 100 with each image of size roughly 1 MB) into memory and perform parallel computation on them using GPU? – user3566188 May 13 '14 at 11:13
  • There is no general solution, depends on the details. You can start with gpu::GpuMat (http://docs.opencv.org/modules/gpu/doc/data_structures.html#gpu-gpumat) – marol May 13 '14 at 11:26

0 Answers0