ImageJ
Search
everywhere
only in this topic
Advanced Search
Invert negative image macro
‹
Previous Topic
Next Topic
›
Classic
List
Threaded
♦
♦
Locked
3 messages
andyg2
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Invert negative image macro
Is there a way to invert a binary image if the top left pixel is black - as a macro?
dscho
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Invert negative image macro
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
andyg2
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Invert negative image macro
Oh my, that was so easy! I like it a lot! Many thanks!
Free forum by Nabble
Edit this page