From b8f1ee8653bd9d3de0fd60329bb54a2a1c9aecae Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Tue, 29 Aug 2006 16:23:16 +0200 Subject: [PATCH] simple clusterization by average features for testing purposes --- images/signature.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) { -- 2.39.2