Re: Invert negative image macro
Posted by dscho on Nov 05, 2010; 2:51pm
URL: http://imagej.273.s1.nabble.com/Invert-negative-image-macro-tp3686483p3686484.html
Hi Andy,
On Thu, 4 Nov 2010, Andy Gee wrote:
> Is there a way to invert a binary image if the top left pixel is black -
> as a macro?
Something like
if (getPixel(0, 0) == 0)
run("Invert");
should get you started.
Ciao,
Johannes