CIELab Color based image segmentation

asked 2019-02-24 07:13:45 -0600

dineshlama gravatar image

In opencv is their any method to segment given image based on the cielab color space like this one provided by matlab? What i want is not convert rgb image into binary image than apply opencv segmentation methods like watershed but instead convert the rgb image into lab color space and than directly apply some algorithm to segment given image.

edit retag flag offensive close merge delete

Comments

indeed, throwing away color / gradient information is often a bad idea for segmentation purposes.

have a look at hfs and graphbased segmentation

berak gravatar imageberak ( 2019-02-25 02:18:40 -0600 )edit

yes, use cvtColor(src,lab,COLOR_BGR2CIELAB). Then use it as any other 3 channel image.

kbarni gravatar imagekbarni ( 2019-02-25 04:08:51 -0600 )edit