arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.18407cs.CV
收藏

超越内存的图像处理

Larger than memory image processing

Department of Computer Science(计算机科学系);University of Copenhagen(哥本哈根大学);Department of Mechanical Engineering(机械工程系);University College London(伦敦大学学院)

Jon Sporring, David Stansby

AI总结:

本研究提出了一种基于流式处理的领域特定语言,用于高效处理超大规模图像数据,通过优化内存和I/O使用,提升处理效率。

摘要:

本报告针对皮字节级数据集(如1.4 PB的电子显微镜体积和150 TB的人体器官图谱)的超内存图像分析进行了探讨。我们主张性能本质上是I/O受限的。我们证明将分析结构化为数据的流式处理是至关重要的。对于3D体积,有两种流行的表示方法:二维切片堆叠(例如目录或多页TIFF)和三维分块布局(例如Zarr/HDF5)。虽然对于某些算法,磁盘上的分块布局是保持磁盘I/O最小的关键,但我们展示了如何在任何图像表示之上构建基于切片的流式架构,以最小化磁盘I/O。这尤其对依赖相邻值的算法有利,因为切片流式架构是1D的,这意味着只有两种可能的扫描顺序,这两种顺序都与从磁盘读取图像的顺序一致。这与三维分块不同,在这种情况下,任何扫描都必须至少访问每个分块9次。我们通过基于扫描的执行(自然的2D/3D顺序)、窗口操作和意识重叠的分块来正式化这一点,以减少冗余访问。基于这些原则,我们引入了一个领域特定语言(DSL),该语言编码具有内在知识的算法,了解其最优的流式和内存使用;该DSL在编译时和运行时进行管道分析,自动选择窗口大小、融合阶段、tee和zip流以及为内存有限的机器调度传递,从而实现接近线性的I/O扫描和可预测的内存占用。该方法与现有的分割和形态学工具集成,但将预处理和后处理重新框架为优先考虑顺序读取/写入模式的管道,从而在不需要完全体积驻留内存的情况下,为极大规模图像带来显著的吞吐量提升。

英文摘要:

This report addresses larger-than-memory image analysis for petascale datasets such as 1.4 PB electron-microscopy volumes and 150 TB human-organ atlases. We argue that performance is fundamentally I/O-bound. We show that structuring analysis as streaming passes over data is crucial. For 3D volumes, two representations are popular: stacks of 2D slices (e.g., directories or multi-page TIFF) and 3D chunked layouts (e.g., Zarr/HDF5). While for a few algorithms, chunked layout on disk is crucial to keep disk I/O at a minimum, we show how the slice-based streaming architecture can be built on top of either image representation in a manner that minimizes disk I/O. This is in particular advantageous for algorithms relying on neighbouring values, since the slicing streaming architecture is 1D, which implies that there are only 2 possible sweeping orders, both of which are aligned with the order in which images are read from the disk. This is in contrast to 3D chunks, in which any sweep cannot be done without accessing each chunk at least 9 times. We formalize this with sweep-based execution (natural 2D/3D orders), windowed operations, and overlap-aware tiling to minimize redundant access. Building on these principles, we introduce a domain-specific language (DSL) that encodes algorithms with intrinsic knowledge of their optimal streaming and memory use; the DSL performs compile-time and run-time pipeline analyses to automatically select window sizes, fuse stages, tee and zip streams, and schedule passes for limited-RAM machines, yielding near-linear I/O scans and predictable memory footprints. The approach integrates with existing tooling for segmentation and morphology but reframes pre/post-processing as pipelines that privilege sequential read/write patterns, delivering substantial throughput gains for extremely large images without requiring full-volume residency in memory.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑