From: Pavel Charvat Date: Tue, 29 Aug 2006 14:23:16 +0000 (+0200) Subject: simple clusterization by average features for testing purposes X-Git-Tag: holmes-import~579 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b8f1ee8653bd9d3de0fd60329bb54a2a1c9aecae;p=libucw.git simple clusterization by average features for testing purposes --- diff --git a/images/signature.h b/images/signature.h index d59e043d..5f8009a1 100644 --- a/images/signature.h +++ b/images/signature.h @@ -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) {