Getting problem in Matlab GUI code.

조회 수: 3 (최근 30일)
Muhammad Danish
Muhammad Danish 2016년 10월 7일
답변: Image Analyst 2016년 10월 14일
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.

답변 (2개)

Walter Roberson
Walter Roberson 2016년 10월 7일
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 2016년 10월 14일
Try imadjust() to change the image, or colormap() to change just how it's displayed.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by