source: hep2cells/makerotinv.m @ 70

Last change on this file since 70 was 45, checked in by dtax, 12 years ago

All useful files for processing of cells.

File size: 924 bytes
RevLine 
[45]1% make rotational invariant features
2%
3% The whole procedure goes like:
4% 1. readcells.m       -> cells.mat
5% 1a. scalecellimage   -> cellscaled.mat
6% 2. gencellgabor.m    -> cells_gabor_sc.mat
7% 3. makerotinv
8% 3a. gencellsimple.m (max)  -> cellssimplemax.mat
9% 3b. gencellsimple.m (mean) -> cellssimplemean.mat
10% 3c. gencellsimple.m (var)  -> cellssimplevar.mat
11
12[a,b]=gencellsimple(x,z,'max');
13xnew = sumgabororientations(a);
14znew = sumgabororientations(b);
15[a,b]=gencellsimple(x,z,'mean');
16xnew = [xnew sumgabororientations(a)];
17znew = [znew sumgabororientations(b)];
18[a,b]=gencellsimple(x,z,'var');
19xnew = [xnew sumgabororientations(a)];
20znew = [znew sumgabororientations(b)];
21
22% fix a wrong labeling in the training set:
23lab = getlabels(xnew);
24I = strmatch('centromeric',lab);
25lab(I,:) = repmat('centromere     ',length(I),1);
26xnew = remclass(setlabels(xnew,lab));
27
28a = xnew; b = znew;
29save cellssimple_rotinv a b;
30
31
32
Note: See TracBrowser for help on using the repository browser.