]> mj.ucw.cz Git - libucw.git/blobdiff - images/sig-init.c
fixed bugs causing the imagesig analyser to fail in scanner
[libucw.git] / images / sig-init.c
index 17250e6846111bf7007568cabd733fc955c1eddb..2dba481c871e09eaf6e76e64a4f754f13df193a2 100644 (file)
@@ -7,7 +7,7 @@
  *     of the GNU Lesser General Public License.
  */
 
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
 
 #include "sherlock/sherlock.h"
 #include "lib/math.h"
 
 static double image_sig_inertia_scale[3] = { 3, 1, 0.3 };
 
-void
-bget_image_signature(struct fastbuf *fb, struct image_signature *sig)
-{
-  breadb(fb, &sig->vec, sizeof(sig->vec));
-  sig->len = bgetc(fb);
-  breadb(fb, sig->reg, sig->len * sizeof(*sig->reg));
-}
-
-void
-bput_image_signature(struct fastbuf *fb, struct image_signature *sig)
-{
-  bwrite(fb, &sig->vec, sizeof(sig->vec));
-  bputc(fb, sig->len);
-  bwrite(fb, sig->reg, sig->len * sizeof(*sig->reg));
-}
-
 struct block {
   u32 l, u, v;         /* average Luv coefficients */
   u32 lh, hl, hh;      /* energies in Daubechies wavelet bands */