Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Receiving error Output argument "V" (and maybe others) not assigned during call to "C:\Users\​jhilam\Dow​nloads\ima​gefilterde​mo\create_​variance.m​>create_va​riance".

2 vues (au cours des 30 derniers jours)
Jhilam Mukherjee
Jhilam Mukherjee le 29 Sep 2014
Clôturé : MATLAB Answer Bot le 20 Août 2021
I want to calculate variance of an image. my code look like
function V=create_variance(I)
[M N]=size(I);
% I(i,j)=zeros(12);
X=0;
tot_intensity=0;
for i=1:M
for j=1:N
tot_intensity=tot_intensity+I(i,j);
end
end
mean_intensity=tot_intensity/(M*N)
for i=1:M
for j=1:N
X=X+(I(i,j)-mean_intensity);
X=X*X*X;
end
end
A=X/M*N;
end
while I executed main function I received above error.
How can I overcome this error

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by