color distribution in L*a*b*
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
madhan ravi
2018-11-14
a(a<0)
a(a>0)
2 个评论
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!