Skip to content

Event

Reworking OpenCV's Mat with memory-mapped files: solving the problem of large images that don't fit in memory

1 reports · 1 sources

Guyuehome introduces a scheme that reworks OpenCV Mat using memory-mapped files, so that large images that don't fit in memory can still be accessed through the Mat interface, with data still pointing to a uchar* in contiguous memory. The rework switches paths according to image size: below the threshold it still uses native heap allocation, with no impact on performance; only genuinely large images switch to the memory-mapped path, transparently to upper-layer callers.

Report timeline

  1. Reworking OpenCV's Mat with memory-mapped files: solving the problem of large images that don't fit in memory

    Reworking OpenCV's Mat through memory-mapped files lets large images that don't fit in memory still be accessed through the Mat interface, with data still pointing to a contiguous uchar* in memory. Below the threshold, native heap allocation is still used and performance is unaffected; only genuinely large images switch paths, transparently to upper-layer callers.

    Guyuehome ·

Related topics