Altering intensity levels within an image
1 回表示 (過去 30 日間)
古いコメントを表示
I would like to know with a black and white image of bit depth 8 (0-255 tones), how could I divide this range of 0-255 into two or more range for the purpose of decreasing the intensity levels of an image in Matlab? For instance, if a pixel has the intensity 192, how could I possibly bring it down to 2 by dividing the range of 0-255?
0 件のコメント
回答 (2 件)
Image Analyst
2013 年 2 月 8 日
Simply divide by 2:
yourImage = uint8(yourImage / 2);
I have no idea what you are thinking with respect to having two or more ranges. You have only one range 0-255 and images can take any value in that range.
0 件のコメント
Youssef Khmou
2013 年 2 月 8 日
hi, you can use the function :
J = imadjust(I,[low_in; high_in],[low_out; high_out],gamma)
for an example see :
doc imadjust
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!