]> mj.ucw.cz Git - libucw.git/commitdiff
testing textured vs nontextured classification
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Fri, 8 Sep 2006 13:29:44 +0000 (15:29 +0200)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Fri, 8 Sep 2006 13:29:44 +0000 (15:29 +0200)
images/sig-cmp-gen.h

index ef6d2446d2c9a60656cbf4efb3c2fc50bf20deee..c6b80195bd1ae959c5f40a6d1309caa65d085791 100644 (file)
@@ -50,6 +50,14 @@ image_signatures_dist_2_explain(struct image_signature *sig1, struct image_signa
   explain_signature(sig2, msg, param);
 #endif
 
+  /* FIXME: do not mux textured and non-textured images (should be split in clusters tree) */
+  if ((sig1->flags ^ sig2->flags) & IMAGE_SIG_TEXTURED)
+    {
+      MSG("Textured vs non-textured");
+      LINE;
+      return ~0U;
+    }
+  
   /* Compute distance matrix */
   n = 0;
   MSG("Distance matrix:");