I’m trying to draw stick like shapes in my images, like this example delta2DStick.tiff (3.0 MB). To do so, I take a 2D box mask, using WritableBox and rotate and translate it, which leads to the sort of broken shapes you see in the attached image (Note that to transform masks into iterable intervals, I do as
suggested in https://forum.image.sc/t/examples-of-usage-of-imglib2-roi/22855/8)
I would’ve used the line mask, but the problem is that I can’t define thickness for lines.
This is all happening because LineRegionOfInterest is deprecated by the way.
Any suggestions how I should go about this? Note that it’s not 100% essential for me to use masks to draw lines, I can use any other class you may suggest.