Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6734 > unrolled thread

Calculate an image mean withouth the "mean" command

Started bysfalanzo <iwannasgheppa@hotmail.it>
First post2011-11-25 10:07 +0000
Last post2011-11-25 10:07 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Calculate an image mean  withouth the "mean" command sfalanzo <iwannasgheppa@hotmail.it> - 2011-11-25 10:07 +0000

#6734 — Calculate an image mean withouth the "mean" command

Fromsfalanzo <iwannasgheppa@hotmail.it>
Date2011-11-25 10:07 +0000
SubjectCalculate an image mean withouth the "mean" command
Message-ID<janpd0$b5m$1@smc.vnet.net>
Hi at all,
first, sorry for the bad english...
i have to calculate the mean of an image without using the command "mean".
with mean i resolve in this way:
[code]a=imread('x.JPG');

[M,N]=size(a);

%mask 5x5
for i=1:M-4
      for j=1:N-4
            c = a(i : i+4 , j : j+4);
            media5(i,j)=mean( c ( : ) );
      end;
end;[/code]

the teacher says that shoul be used more for-cycle, but i have no idea about how implement it.

Thanks in advance

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web