color distribution in L*a*b*

1 回表示 (過去 30 日間)
ZHI QU
ZHI QU 2018 年 11 月 14 日
コメント済み: Juan Villacrés 2019 年 4 月 4 日
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