Histeq in old version worked with RGB
古いコメントを表示
Hi,
I am reusing some old code from a research project we did years ago, I used 'ImageEq=histeq(ImageOrg, counts)'
Now I noticed that histeq does not accepted RGB while it was no problem in the older version, so Did older version of Matlab accept RGB-images for the function histeq? and if yes, how did that work because it should act than on one of the three matrices ( R, G or B)?
thank for your help , regards J
1 件のコメント
bdcxns
2019 年 3 月 4 日
編集済み: Image Analyst
2019 年 3 月 4 日
Your question has been here for several years, but I am curious about this, since there is no information on how Matlab implement the histeq on color images (in 2017a as I am using), until I tried out different possible ways.
It is actually reshape(histeq(rgbimage(:)),size(rgbimage)). For rgbimage being a colour image in rgb.
採用された回答
その他の回答 (2 件)
Jürgen
2012 年 5 月 13 日
0 投票
1 件のコメント
Image Analyst
2012 年 5 月 13 日
Histogram equalization is not needed at all to do extraction. It only brightens things up, but you can still threshold and extract the white objects just fine with the original image, it's just that the threshold is at a different level but the end result is identical. Unless you need it for some reason for visual purposes (or curiosity) you're just spending more time than necessary doing something that is not at all needed.
Jürgen
2012 年 5 月 14 日
0 投票
2 件のコメント
Image Analyst
2012 年 5 月 14 日
It could work, but like I said it usually doesn't produce images as natural looking as if you had just done a linear contrast stretch, like you'd get with imadjust(). By the way, you should have put this as a "Comment on this Answer" rather than an original "Answer" to your question.
Jürgen
2012 年 5 月 14 日
カテゴリ
ヘルプ センター および File Exchange で Image display and manipulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!