Clear Filters
Clear Filters

reducing an image contrast using matlab

13 views (last 30 days)
Hello Researchers,
is there is a way or a specific code for reducing the image contrast in Matlab?

Accepted Answer

Image Analyst
Image Analyst on 6 Oct 2014
You can use imadjust() in the Image Processing Toolbox. It's not interactive though. Or simply multiply your image by a factor between 0 and 1.
  2 Comments
Zohair Al-Ameen
Zohair Al-Ameen on 7 Oct 2014
dear sir, I'm trying to reduce the contrast of an image, not improve the contrast, imadjust() improves the contrast of a given poor contrast image. however, my key issue here is to reduce the contrast of an image. any ideas !!
Image Analyst
Image Analyst on 7 Oct 2014
It can reduce it also. Read the help:
J = imadjust(I,[low_in; high_in],[low_out; high_out]) maps the values in I to new values in J such that values between low_in and high_in map to values between low_out and high_out.
Do you think the contrast would be reduced if low_out was 100 and high_out was 103, so that there was only a 3 gray level difference between the lowest gray level and the highest gray level? Sure it would.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!