fmi-faim / faim-ipa

A collection of Image Processing and Analysis (IPA) functions used at the Facility for Advanced Imaging and Microscopy (FAIM)
BSD 3-Clause "New" or "Revised" License
9 stars 6 forks source link

Shifting in YX is slow #66

Closed tibuch closed 11 months ago

tibuch commented 11 months ago

The current implementation uses skimage.transform.warp for a simple integer based yx translation: https://github.com/fmi-faim/faim-hcs/blob/b9f1448260ac9c894dd4a2fe4829a440ef5ddba3/src/faim_hcs/hcs/imagexpress/StackAcquisition.py#L67

A faster approach would be to use slicing and directly write the data to the correct position in the output array.