'Mean Intensity Gradiënt'
3 ビュー (過去 30 日間)
古いコメントを表示
Hi all, Can any one tel me the command in matlab to calculate the 'mean intensity gradiënt' of image?
1 件のコメント
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.
回答 (1 件)
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')
% distribution
histogram(Gmag)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!