Foreground segmentation when background and subject have nearly identical colour

asked 2018-06-30 13:51:31 -0600

papabiceps gravatar image

I have an image that has background and foreground with nearly identical color. For example see the link . I have tried grabcut and graphcut to segment but with no success. Can someone suggest me an approach to successfully segment foreground from background in the given image.

edit retag flag offensive close merge delete

Comments

It's so much easier to do this when you have a video camera.

sjhalayka gravatar imagesjhalayka ( 2018-06-30 15:21:04 -0600 )edit

^^ it's not the same problem.

berak gravatar imageberak ( 2018-07-01 04:42:13 -0600 )edit

try with canny :

image description

LBerger gravatar imageLBerger ( 2018-07-01 05:35:15 -0600 )edit

Can I see the codes you used in here?

joyceeeen gravatar imagejoyceeeen ( 2018-07-01 23:02:51 -0600 )edit

you can use this code. You can use deriche filter (in opencv_contrib instead of scharr)

LBerger gravatar imageLBerger ( 2018-07-02 03:44:33 -0600 )edit