source:
hep2cells/normalizeperimage.m
@
101
Last change on this file since 101 was 45, checked in by dtax, 12 years ago | |
---|---|
File size: 190 bytes |
Line | |
---|---|
1 | function b = normalizeperimage(a) |
2 | |
3 | imlab = getident(a,'image'); |
4 | ll = unique(imlab); |
5 | b = a; |
6 | for i=1:ll |
7 | I = find(imlab==i); |
8 | wsc = scalem(a(I,:),'variance'); |
9 | b(I,:) = a(I,:)*wsc; |
10 | end |
11 |
Note: See TracBrowser
for help on using the repository browser.