I have written a plugin that segments pathology images, and stores each population of cells as one ShapeRoi for visualization of the result. It has so far worked well for headless use when writing to a file, but I’m running into trouble when attempting to use it with the GUI, as displaying the output image with the overlay is making Fiji unresponsive. The images that provoke this behavior are around 2000x2000 pixels, with each ShapeRoi typically containing thousands of outlines.
Is there some way to work around this problem, to make the ROIs and overlay more lightweight perhaps? Or should I just accept this limitation and work with smaller images?