Effacer les filtres
Effacer les filtres

Info

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

i had converted image into blocks. I converted blocks to linear array. Next i calculated mean values for first 8 arrays. now i want to convert mean values to linear array again. please send suitable code. please don't ignore it. thank u very much.

1 vue (au cours des 30 derniers jours)
divya taru
divya taru le 22 Mar 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
for i=1:4:16
for j=1:4:16
block=I(i:i+3,j:j+3);
%convert 4X4 into 16X1 column vector
tv(:,col)=reshape(block,16,1);
col=col+1;
count=count+1;
column=column+4;
end
row=row+4;
end
%find mean of 8 arrays
nn=8;
for count=1:16
sum1=sum1+tv(:,count);
if count==nn*nnn
mean(:,r)=sum1/8;
sum1=0;
nnn=nnn+1;
r=r+1;
end
end

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