Ilastik/lazyflow — comment on commit 780fc9485d8854e967b57e5f20679a4327481eac
File: tests/testStackLoader.py line 56
By thorbenk:

This seems overly complicated and makes unnecessary copies.

We need to read in one file, then slice out the correct 2D region of interest, and write the resulting 2D array directly into the result array. These stack can get very large, therefore we shouldn't hold the 3D data twice (once in temp, once in result)