imglib / imglib2

A generic next-generation Java library for image processing
http://imglib2.net/
Other
302 stars 90 forks source link

Postpone Cell linking to CellRandomAccess.get() #329

Closed tpietzsch closed 1 year ago

tpietzsch commented 1 year ago

Previously the CellRandomAccess would link Cell data to it's Type proxy as soon as it enters a new Cell. Specifically, for LazyCellImgs this would trigger loading of the Cell (potentially unnecessary). This PR changes this mechanics to link only when the first get() in a new Cell happens.

This addresses https://github.com/imglib/imglib2/issues/252.