Re: zero mean



nick <fdfdf@xxxxxxxx> writes:

ok, it doesnt

my code is

C=imread('carline.bmp');
Cg=rgb2gray(C);
row=Cg(93,:);

A=P1;
B=row;
plot(A)
//result shown in link
<http://img.photobucket.com/albums/v710/nix_pug/A.jpg>

A1=A-mean(A);

plot(A1)
//result shown in link
<http://img.photobucket.com/albums/v710/nix_pug/A1.jpg>

I think you are computing with integers, so they are saturating at 0.
Try replacing A=P1 with A = double(P1), and continue with the code.


--
Peter Boettcher <boettcher@xxxxxxxxxx>
MIT Lincoln Laboratory
MATLAB FAQ: http://www.mit.edu/~pwb/cssm/
.