How can I compute the absolute mean brightness error AMBE in Matlab?

30 ビュー (過去 30 日間)
ghada sandoub
ghada sandoub 2019 年 3 月 18 日
編集済み: Fahmi Akmal Dzulkifli 2020 年 2 月 27 日
An objective measurement is proposed to rate the performance in preserving the original brightness. It is referred to as absolute mean brightness error (AMBE) and is defined as the absolute difference between the input and the output image’s mean AMBE = absolute( MB(X) − MB(Y) ) . X and Y denotes the input and output image, respectively. and the MB(.) denotes the process of mean brightness. Lower AMBE indicates that the brightness is better preserved. the input is color image, so i know that the absolute difference between input and output will be in grayscale format. and i want to know how to estimate the mean brightness (MB) for each image. does any one know how to do this in Matlab??

回答 (1 件)

Fahmi Akmal Dzulkifli
Fahmi Akmal Dzulkifli 2020 年 2 月 27 日
編集済み: Fahmi Akmal Dzulkifli 2020 年 2 月 27 日
Is this what you are looking for?
A1 = imread(yourimage); % your original image
B = rgb2gray(A1);
A2 = imread(yourimage2); % your enhanced image
B2 = rgb2gray(A2);
Z1 = mean2(B); % Calculate mean of an entire original image
Z2 = mean2(B2); % Calculate mean of an entire output image
AMBE = Z1-Z2; % calculate AMBE

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by