Ask Your Question

Segmenting an image with similar background color.

asked 2018-07-05 09:54:46 -0500

papabiceps gravatar image

I have an image with similar background color and foregorund color. I want to segment the footprint part and leave out background.

It would be very helpful if someone provided me with a code to achieve this.

image description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-07-06 03:38:21 -0500

Ziri gravatar image

You can try converting your image into different color spaces and threshold using 3 channels...

But if you want more precision you'll have to move to deep learning ( U net or Mask RCNN)

edit flag offensive delete link more


My first idea was to try using deep learning but I don't have enough training images.

papabiceps gravatar imagepapabiceps ( 2018-07-06 03:41:11 -0500 )edit

You can create large data by changing images you have ( contrast chnage , rotation , translation ...etc)

Ziri gravatar imageZiri ( 2018-07-06 03:43:57 -0500 )edit

For testing... don't train from scratch. Fine-tune an existing model.

Ziri gravatar imageZiri ( 2018-07-06 03:49:46 -0500 )edit

Ofcourse, training from scratch doesn't sense when you have small dataset. Thank you for your inputs.

papabiceps gravatar imagepapabiceps ( 2018-07-06 03:51:57 -0500 )edit

I think its better if you open a new question.

papabiceps gravatar imagepapabiceps ( 2018-08-09 04:46:31 -0500 )edit

Question Tools

1 follower


Asked: 2018-07-05 09:54:46 -0500

Seen: 151 times

Last updated: Jul 06 '18