I'm fairly new to writing plugins in ImageJ and hoping someone has a simple/fast solution to a problem I'm having. I'm using the fill command to fill an ROI, but because fill doesn't use antialiasing, I get unwanted jaggies along the interpolated diagonal lines.
I've thought of two possible solutions, but I was sort of hoping I've missed a parameter/command that would save me the time of implementing one of them.
I could upscale the image and ROI, fill the ROI, then downscale the image, allow the scaling to perform the interpolation, but this approach seems a bit excessive/might be slow for my large image stacks!
Otherwise I could write code to iterate along the edge pixels and perform the interpolation and antialiasing myself, which might take me a while to implement, and then may still be slow.
Any help would be appreciated!
Thanks and regards,