Login  Register

painting an overlay

Posted by Kenneth Sloan-2 on Apr 29, 2014; 10:15pm
URL: http://imagej.273.s1.nabble.com/painting-an-overlay-tp5007497.html

I am looking for help on a feature that I think exists, but I have never used.
The answer is probably RTFM, but I would appreciate a few hints.

Here’s what I want to do:

a) I have a plugin that accepts any type of image, makes a copy, converts to 8-bit
   and then uses auto local thresholding to create a binary mask
b) I would like to give a trained observer the option to PAINT in the thresholded image
   to correct errors made by the auto local threshold
c) That works now - except that the user has little guidance correlating the gray-scale
   image with the binary mask
d) So…I would like to OVERLAY the binary mask on the grayscale image and allow the observer
   to paint the OVERLAY
e) and then…at the end…I need to convert the overlay to an independent binary mask image.

The parts I don’t know how to do are:

* convert binary mask to an overlay on the original gray-scale image
  (it’s ok, of course, to do this on a COPY of the original, since the original
   may not be 8-bit in the first place)
* draw/erase the overlay (are there paintbrush tools available to work on an overlay?)
* convert the final overlay to a binary image.

Pointers to the documentation, or example code that does something even vaguely similar, would be
most appreciated.

--
Kenneth Sloan
[hidden email]

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html