]> mj.ucw.cz Git - libucw.git/commitdiff
simple clusterization by average features for testing purposes
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Tue, 29 Aug 2006 14:23:16 +0000 (16:23 +0200)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Tue, 29 Aug 2006 14:23:16 +0000 (16:23 +0200)
images/signature.h

index d59e043d902824e67b17fdd5e47d6e902ddb89c5..5f8009a196b34da557987b4740e90a9c2b8e6c39 100644 (file)
@@ -38,6 +38,18 @@ struct image_signature {
   struct image_region reg[IMAGE_REG_MAX];/* Feature vector for every region */
 } PACKED;
 
+struct image_cluster {
+  union {
+    struct {
+      s32 dot;                 /* Dot product of the splitting plane */
+      s8 vec[IMAGE_VEC_F];     /* Normal vector of the splitting plane */
+    };
+    struct {
+      u64 pos;                 /* Cluster size in bytes */
+    };
+  };
+} PACKED;
+
 static inline uns
 image_signature_size(uns len)
 {