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 DoubleTypeImg. The Create Op was replaced with CreateImgFromRAI, which returns an Img that is of the same Type, avoiding this error.
Previously, when DefaultFloodFill was called as a function its
initialize()
method usedCreateImgFromInterval
, which could be problematic for theOp
if the input image was not alsoDoubleType
since that particular createOp
returns aDoubleType
Img
. The Create Op was replaced withCreateImgFromRAI
, which returns anImg
that is of the sameType
, avoiding this error.