Moritz Lennert 4dd34bf53f Various typos (backport https://trac.osgeo.org/grass/changeset/67703 from trunk) пре 9 година
..
Makefile 0f46a5c405 imagerylib: include VECT_INC пре 13 година
README db49180dd7 welcome to GRASS 7.0.svn пре 17 година
alloc.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
eol.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
find.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
fopen.c 98dbc68757 fixed unlucky formatted messages (thanks to Glynn) пре 17 година
georef.c 5ae5d66d61 move polynomial transformation to imagery lib пре 13 година
georef_tps.c df20bea26c imagery lib: add thin plate spline coordinate transformation пре 12 година
group.c a77f941d21 unused i.points + i.vpoints removed: replaced by g.gui.gcp (trunk, https://trac.osgeo.org/grass/changeset/62555) пре 10 година
iclass.c 6214629352 iclass backend: make subgroup optional пре 12 година
iclass_bands.c e1d5fc9103 imagerylib: functions used by wxIClass, based on i.class (co-author V. Petras) пре 13 година
iclass_local_proto.h 08a91ed99f Don't use // comments (C89 compatibility) пре 12 година
iclass_perimeter.c 912c2c5a04 typo in comment пре 11 година
iclass_signatures.c 08a91ed99f Don't use // comments (C89 compatibility) пре 12 година
iclass_statistics.c 4dd34bf53f Various typos (backport https://trac.osgeo.org/grass/changeset/67703 from trunk) пре 9 година
imagerylib.dox a77f941d21 unused i.points + i.vpoints removed: replaced by g.gui.gcp (trunk, https://trac.osgeo.org/grass/changeset/62555) пре 10 година
iscatt_core.c e59c2918d6 imagerylib: C compliance (trunk, https://trac.osgeo.org/grass/changeset/67258) пре 9 година
iscatt_structs.c 5a8bbb7db8 wx.iscatt: c backend пре 12 година
list_gp.c a4f35de12d imagerylib: i18n, message cosmetics пре 16 година
list_subgp.c 5a0e2afee9 libgis: G__ls -> G_ls2 пре 10 година
loc_info.c 3a539ed71b Fix: return the allocated buffer пре 15 година
points.c a927cf1428 use G_getl2(), i18n (merge from devbr6) пре 16 година
ref.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
sig.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
sigfile.c 79ea9c0b06 imagerylib: update signature functions to use G_unqualified_name() пре 12 година
sigset.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
sigsetfile.c 79ea9c0b06 imagerylib: update signature functions to use G_unqualified_name() пре 12 година
target.c a77f941d21 unused i.points + i.vpoints removed: replaced by g.gui.gcp (trunk, https://trac.osgeo.org/grass/changeset/62555) пре 10 година
title.c a927cf1428 use G_getl2(), i18n (merge from devbr6) пре 16 година
var.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година

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)