필터 지우기
필터 지우기

Creating Function that Divides of Mean Pixel value fo two images

조회 수: 1 (최근 30일)
shiffraw dagnechaw
shiffraw dagnechaw 2018년 7월 27일
다시 열림: Walter Roberson 2018년 12월 22일
I'm trying to create a function that divides the mean pixel values of two images. I tried to write a function, but the answer it's giving me is one which is incorrect because when I calculated the individual mean pixel values and divided them I got approx 1/2. Here is my code:
function [Beta] = betacalc(beta1,beta2)
beta1im = imread(beta1);
beta2im = imread(beta2);
beta1mean = mean(beta1im(:));
beta2mean = mean(beta1im(:));
betadivide = beta1mean/beta2mean
end

채택된 답변

Image Analyst
Image Analyst 2018년 7월 27일
The code is correct, except for the error that Beta is never assigned by your function.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by