Nicklas Larsson c37871b51d Fix -Wunused-variable compiler warnings (#2158) 3 lat temu
..
testsuite 0e43bf349d Rename band references to semantic labels (#1928) 3 lat temu
Makefile e6f2610d6c imageryintro.html: add section about semantic labels (#2091) 3 lat temu
README db49180dd7 welcome to GRASS 7.0.svn 17 lat temu
alloc.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 lat temu
band_references_scheme.png e6f2610d6c imageryintro.html: add section about semantic labels (#2091) 3 lat temu
eol.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 lat temu
find.c fb4a9754ba Imagery: move signatures to subdirs (#1850) 3 lat temu
fopen.c 2ce5bf0aef Imagery: Add mapset aware functions to allow group file reading from other mapsets. 6 lat temu
georef.c 5ae5d66d61 move polynomial transformation to imagery lib 13 lat temu
georef_tps.c 3089db70b0 Define MIN() and MAX() correctly and exactly once (#1795) 3 lat temu
group.c db1f1582dd imagery lib 4 lat temu
iclass.c 6214629352 iclass backend: make subgroup optional 11 lat temu
iclass_bands.c e1d5fc9103 imagerylib: functions used by wxIClass, based on i.class (co-author V. Petras) 13 lat temu
iclass_local_proto.h 08a91ed99f Don't use // comments (C89 compatibility) 12 lat temu
iclass_perimeter.c f9312387e5 i18N: fix user messages 7 lat temu
iclass_signatures.c 0e43bf349d Rename band references to semantic labels (#1928) 3 lat temu
iclass_statistics.c 2b56d2452d Various typos (fixes https://trac.osgeo.org/grass/ticket/2882 Patch for various spelling errors (sebastic)) 9 lat temu
imagerylib.dox 112d005479 Imagery lib: Add notes to documentation about I_get_*2() functions (#1250) 4 lat temu
iscatt_core.c c47f2c159a lib/imagery: Fix file size check (#1274) 4 lat temu
iscatt_structs.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 lat temu
list_gp.c 4c7db5b215 i.group: fit long names to fancy file listing (#1818) 3 lat temu
list_subgp.c 4c7db5b215 i.group: fit long names to fancy file listing (#1818) 3 lat temu
loc_info.c 3a539ed71b Fix: return the allocated buffer 15 lat temu
manage_signatures.c c37871b51d Fix -Wunused-variable compiler warnings (#2158) 3 lat temu
points.c a927cf1428 use G_getl2(), i18n (merge from devbr6) 15 lat temu
ref.c 2ce5bf0aef Imagery: Add mapset aware functions to allow group file reading from other mapsets. 6 lat temu
sig.c 0e43bf349d Rename band references to semantic labels (#1928) 3 lat temu
sigfile.c fb4a9754ba Imagery: move signatures to subdirs (#1850) 3 lat temu
sigset.c 0e43bf349d Rename band references to semantic labels (#1928) 3 lat temu
sigsetfile.c fb4a9754ba Imagery: move signatures to subdirs (#1850) 3 lat temu
target.c e41c2910f9 unused i.points + i.vpoints removed: replaced by g.gui.gcp 10 lat temu
title.c a927cf1428 use G_getl2(), i18n (merge from devbr6) 15 lat temu
var.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 lat temu

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)