imagej / imagej-ops

ImageJ Ops: "Write once, run anywhere" image processing
https://imagej.net/libs/imagej-ops
BSD 2-Clause "Simplified" License
89 stars 42 forks source link

CreateOutputFFTMethods requires a image creator that can take an ImgFactory #650

Open gselzer opened 1 year ago

gselzer commented 1 year ago

As described in this forum post, CreateOutputFFTMethods will fail when it is asked to create a large image, as it always assumes that the image can be an ArrayImg.

We need an Op that can take an ImgFactory as a parameter, so that CreateOutputFFTMethods can decide whether to make a CellImg or an ArrayImg. Or, at least, we can delegate the ImgFactory choice to Util.getSuitableImgFactory. And then CreateOutputFFTMethods needs to call it.

(And we should also make this change in ImageJ-Ops2 :grin:)

imagesc-bot commented 1 year ago

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/error-when-correlating-large-images-in-ops/75433/4