Question about Color histogram plot

3 次查看(过去 30 天)
So im trying to modify the code here:
My modified code is attached to this question.
my problem is that the color in my histogram plot is not according to color. It does not have a sequence of color since the black bar is near the center when it is supposed to be at the right most.
Original image is:
Histogram of the image is:
Also, follow up question. How can i extract using the histogram plot a specific boundary of color. Like example i want to extract from the original image the pixels with yellowish color. How can i do that? Thank you so much!

回答(1 个)

Image Analyst
Image Analyst 2014-8-16
It's best if you ask the author about why his program behaves that way. Are you sure the function expects a 3D color image?
I have several color segmentation routines in my File Exchange to help you with 'i want to extract from the original image the pixels with yellowish color" http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
  2 个评论
Portgas Ace
Portgas Ace 2014-8-16
what specific routines do you mean? Sorry im not that good in image processing , im just a student. :P
Image Analyst
Image Analyst 2014-8-16
Any of them that say "color segmentation" or "color detection" in the title.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by