Markus Neteler d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 years ago
..
Makefile 0f46a5c405 imagerylib: include VECT_INC 13 years ago
README db49180dd7 welcome to GRASS 7.0.svn 17 years ago
alloc.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 16 years ago
eol.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 16 years ago
find.c c324d19dc4 imagery lib: Use HOST_DIRSEP instead of hardcoded value; New function to find signature files (required for https://trac.osgeo.org/grass/ticket/3000) 8 years ago
fopen.c 98dbc68757 fixed unlucky formatted messages (thanks to Glynn) 16 years ago
georef.c 5ae5d66d61 move polynomial transformation to imagery lib 13 years ago
georef_tps.c df20bea26c imagery lib: add thin plate spline coordinate transformation 11 years ago
group.c e41c2910f9 unused i.points + i.vpoints removed: replaced by g.gui.gcp 10 years ago
iclass.c 6214629352 iclass backend: make subgroup optional 11 years ago
iclass_bands.c e1d5fc9103 imagerylib: functions used by wxIClass, based on i.class (co-author V. Petras) 13 years ago
iclass_local_proto.h 08a91ed99f Don't use // comments (C89 compatibility) 12 years ago
iclass_perimeter.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 years ago
iclass_signatures.c 08a91ed99f Don't use // comments (C89 compatibility) 12 years ago
iclass_statistics.c 2b56d2452d Various typos (fixes https://trac.osgeo.org/grass/ticket/2882 Patch for various spelling errors (sebastic)) 9 years ago
imagerylib.dox e41c2910f9 unused i.points + i.vpoints removed: replaced by g.gui.gcp 10 years ago
iscatt_core.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 years ago
iscatt_structs.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 years ago
list_gp.c a4f35de12d imagerylib: i18n, message cosmetics 16 years ago
list_subgp.c f852a88bdc libgis: G__ls -> G_ls2 10 years ago
loc_info.c 3a539ed71b Fix: return the allocated buffer 15 years ago
points.c a927cf1428 use G_getl2(), i18n (merge from devbr6) 15 years ago
ref.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 16 years ago
sig.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 16 years ago
sigfile.c 7058f3a4b1 Revert https://trac.osgeo.org/grass/changeset/68415 as overwrite implementation is wrong and should be performed by parser or modules 8 years ago
sigset.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 16 years ago
sigsetfile.c 7058f3a4b1 Revert https://trac.osgeo.org/grass/changeset/68415 as overwrite implementation is wrong and should be performed by parser or modules 8 years ago
target.c e41c2910f9 unused i.points + i.vpoints removed: replaced by g.gui.gcp 10 years ago
title.c a927cf1428 use G_getl2(), i18n (merge from devbr6) 15 years ago
var.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 16 years ago

README

To merge 2 signatures

n1 number of points in sig 1
n2 number of points in sig 2

mean1[nbands] means per band for sig 1
mean2[nbands] means per band for sig 2

var1[b1][b2] covariance band 1 with band 2 for sig 1
var2[b1][b2] covariance band 1 with band 2 for sig 2

the meger is

n = n1+n2
mean[b] = (mean1[b]*n1 + mean2[b]*n2)/n

sum1 = var1[b1][b2] * (n1-1) + n1 * mean[b1] * mean[b2];
sum2 = var2[b1][b2] * (n2-1) + n2 * mean[b1] * mean[b2];

var[b1][b2] = (sum1+sum2 - n*mean[b1]*mean[b2) / (n-1)