Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6734
| From | sfalanzo <iwannasgheppa@hotmail.it> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Calculate an image mean withouth the "mean" command |
| Date | 2011-11-25 10:07 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <janpd0$b5m$1@smc.vnet.net> (permalink) |
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
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Calculate an image mean withouth the "mean" command sfalanzo <iwannasgheppa@hotmail.it> - 2011-11-25 10:07 +0000
csiph-web