color distribution in L*a*b*

1 次查看(过去 30 天)
ZHI QU
ZHI QU 2018-11-14
I got the histogram of a* channel of a pic. I wanna know the region distribution. For example, which are the regions with a*<0 and where are a*>0. Is there anyway to do this?

回答(1 个)

madhan ravi
madhan ravi 2018-11-14
  2 个评论
ZHI QU
ZHI QU 2018-11-14
Thx Madhan. I should be more clear, I want to segment the pic according to the a* value.
Juan Villacrés
Juan Villacrés 2019-4-4
If you want to segment the image:
% Define the mask according the "a" channel
mask = Ioriginal(:,:,2)<0; % a value
% Multiply the image with the mask in the three channels
Inew = Ioriginal.*repmat(mask,[1,1,3]);

请先登录,再进行评论。

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by