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.
Previously the
CellRandomAccess
would linkCell
data to it'sType
proxy as soon as it enters a newCell
. Specifically, forLazyCellImg
s this would trigger loading of theCell
(potentially unnecessary). This PR changes this mechanics to link only when the firstget()
in a newCell
happens.This addresses https://github.com/imglib/imglib2/issues/252.