Getting problem in Matlab GUI code.

I am new to matlab. Will u please help me in matlab code for generate negative of image, contrast value of image and average intensity value of pixel in the image.

Antworten (2)

Walter Roberson
Walter Roberson am 7 Okt. 2016

0 Stimmen

For uint8 images,
negativeImage = uint8(255) - YourImage;
For average intensity, rgb2gray() and then mean2()
You need to explain what contrast value you are looking for. One possibility is at https://www.mathworks.com/matlabcentral/answers/81133-how-to-calculate-contrast-per-pixel-cpp-of-an-image#answer_90845
Image Analyst
Image Analyst am 14 Okt. 2016

0 Stimmen

Try imadjust() to change the image, or colormap() to change just how it's displayed.

Kategorien

Mehr zu Images finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 7 Okt. 2016

Beantwortet:

am 14 Okt. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by