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

Fix DefaultFloodFill Img creation when called as a Function #572

Closed gselzer closed 2 years ago

gselzer commented 6 years ago

Previously, when DefaultFloodFill was called as a function its initialize() method used CreateImgFromInterval, which could be problematic for the Op if the input image was not also DoubleType since that particular create Op returns a DoubleType Img. The Create Op was replaced with CreateImgFromRAI, which returns an Img that is of the same Type, avoiding this error.

gselzer commented 4 years ago

@ctrueden this looks ready to merge to me. I rebased the commit over master, the singular commit builds with passing tests.