Refresh open image
Posted by AJBell on Feb 06, 2014; 4:17pm
URL: http://imagej.273.s1.nabble.com/Refresh-open-image-tp5006441.html
Dear list,
I have written a plugin that takes an ROI of a main image and pastes it into a blank small image window for processing. Currently, to move onto another ROI I am closing the small window and re-creating a new one. Whilst functional, this seems somewhat inelegant. Is there a simple command that will effectively "wipe-clean" the small image - like with an etch-a-sketch?
I had thought something like imp.flush would work, but this results in the window freezing up. The only other option I can see right now is to set the pixel values to 255:
ip.setValue(255);
ip.fill();
Is there a better/more efficient method?
Dr Andrew Bell
Research Associate
Department of Infection, Immunity and Inflammation
University of Leicester