'Mean Intensity Gradiënt'

조회 수: 9 (최근 30일)
Wouter De Voegt
Wouter De Voegt 2018년 4월 2일
답변: DGM 2024년 10월 8일
Hi all, Can any one tel me the command in matlab to calculate the 'mean intensity gradiënt' of image?
  댓글 수: 1
Rik
Rik 2018년 4월 2일
That would depend on what it is exactly what you mean with mean intensity gradient. It sounds like you need to calculate the gradient with respect to some direction, and then calculate a mean. Should the output be an image, a vector, or a value? First understanding your method before you start coding is very important.
Have a read here and here. It will greatly improve your chances of getting an answer.

댓글을 달려면 로그인하십시오.

답변 (1개)

DGM
DGM 2024년 10월 8일
Here's my guess
% a uint8 grayscale image
inpict = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/111239/Toner_spikkelpatroon.jpg');
inpict = rgb2gray(inpict);
% gradient magnitude (in uint8-scale)
Gmag = imgradient(inpict);
% mean gradient magnitude
meanGmag = mean(Gmag,'all')
meanGmag = 60.0308
% distribution
histogram(Gmag)

Community Treasure Hunt

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

Start Hunting!

Translated by