Ask Your Question
0

Expansion/inversion of binary image

asked 2015-04-20 20:23:10 -0600

_chris gravatar image

updated 2015-04-20 20:34:15 -0600

Below I've segmented some cells, but I am trying now to essentially make the cells white and the rest black.The problem really is the white area around the cells - I'm not sure what the best approach would be. Any suggestions? I've been trying some morphological approaches but they don't seem to help.

My current attempts basically have been using erosion/opening. I could do some contour work, but I would like to avoid that if possible. image description

edit retag flag offensive close merge delete

Comments

1

Can you provide the original image as well?

theodore gravatar imagetheodore ( 2015-04-22 04:08:34 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-21 02:52:50 -0600

Your solution could be

  1. Watershedding, to find a pixel wide contour of each cell.
  2. Apply skeletization on the image after thresholding to again get pixel wide contours.

Once that is done you will need to detect blobs and fill those with white pixels which is quite straightforward!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-04-20 20:23:10 -0600

Seen: 252 times

Last updated: Apr 20 '15