Photoshop: How to Clarify a Monochromatic, binary, image

  • 1
  • Question
  • Updated 5 years ago
  • (Edited)
I have a monochromatic image that is a binary file. It contains incomplete white circles because they are of objects under a microscope. I want to try and make complete circles out of them. Is that possible? How do you do that, I am new to Photoshop? The image is below

Photo of Mike M

Mike M

  • 2 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 813 Reply Likes
There is no separation between many of them, and the shapes are all elongated in different direction -- so making circles out of them would not be easy.

By doing some erosion and spreading of the black values (after converting to grayscale), you might isolate each shape and find the center of each isolated shape.
But there are a couple that are definitely multiple shapes side by side with no separation visible, and those you'd have to manually separate.
Photo of Mike M

Mike M

  • 2 Posts
  • 0 Reply Likes
Yea the conversion from the color picture to the monochromatic one wasn't great. Here are two of the originals. Maybe you could assist in converting the original picture? And then how do you do the erosion and spreading of the black values to separate the shapes? Also how do you manually separate the shapes? Thanks for your help
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 813 Reply Likes
You've got some chromatic aberration, plus focusing issues, and vignetting.
(and JPEG compression artifacts - I really hope your originals aren't JPEG)

The yellow original has better definition between the shapes. Largest samples seem to be around 17 pixels on a side. Highpass with a radius of 15 or so helps define each shape and remove basic vignetting. Then the green channel has the most contrast. But the blurring is pretty bad, and I can't extract great versions of the shapes in the center and edges.

The red photo doesn't show much chromatic aberration because it's all in one channel - but it is blurry. Shake Removal (deconvolution) might help sharpen it, but you'll need to use several kernel samples for the different areas of blur. The red channel is blown out, but the green channel still has some contrast and isn't quite as blurred. And it's still difficult to extract the shapes given all the problems with these photos.

In matlab you might be able to recognize spheres/circles and find the centroid of each - even with the blurring. But I don't see a simple way to do that in Photoshop with those image samples.