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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145112/image.jpeg)
Histogram of the image is:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145113/image.jpeg)
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!
0 件のコメント
回答 (1 件)
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 件のコメント
Image Analyst
2014 年 8 月 16 日
Any of them that say "color segmentation" or "color detection" in the title.
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!