Login  Register

binary image inversion irritation

Posted by Rainer M. Engel on Sep 09, 2013; 2:11pm
URL: http://imagej.273.s1.nabble.com/binary-image-inversion-irritation-tp5004727.html

Dear all,

I have to convert my 8bit images to binary images, containing only black
and white (0 & 255) pixels. That is OK and offers a wide range of
processing possibilities.

Imagine I have these two images (both are binary)
https://dl.dropboxusercontent.com/u/414433/imagej/bitbin/09.png
https://dl.dropboxusercontent.com/u/414433/imagej/bitbin/12.png

I didn't forget the settings..
//important values to set
run("Colors...", "foreground=white background=black selection=yellow");
run("Options...", "iterations=1 black edm=Overwrite count=1");

But image 12.png is inverted if I make it binary again. This happens
even if I blur it before that. I understand that Making Binary is some
sort of threshold process, which may in some situation swap or invert my
image.

Is there a way to make an image binary with an expression or formula,
all pixels darker 128 become 0, brighter ones become white?

Best Regards,
Rainer


--
Rainer M. Engel, Dipl. Digital Artist
scientific|Media GbR
Pichelsdorfer Str. 143
13595 Berlin

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