Program Listing for File features_struct.h

Return to documentation for file (c/fmdt/features/features_struct.h)

#pragma once

#include <stdint.h>
#include <stddef.h>

#define MAX_ROI_SIZE_BEFORE_SHRINK 65535

#define MAX_ROI_SIZE 400

typedef struct {
    uint32_t* id;
    uint32_t* xmin;
    uint32_t* xmax;
    uint32_t* ymin;
    uint32_t* ymax;
    uint32_t* S;
    uint32_t* Sx;
    uint32_t* Sy;
    float* x;
    float* y;
    size_t* _size;
    size_t* _max_size;
} RoIs_basic_t;

typedef struct {
    uint32_t* id;
    uint32_t* prev_id;
    uint32_t* next_id;
    size_t* _size;
    size_t* _max_size;
} RoIs_asso_t;

typedef struct {
    uint32_t* id;
    float* dx;
    float* dy;
    float* error;
    uint8_t* is_moving;
    size_t* _size;
    size_t* _max_size;
} RoIs_motion_t;

typedef struct {
    uint32_t* id;
    uint32_t* magnitude;
    uint32_t* sat_count;
    size_t* _size;
    size_t* _max_size;
} RoIs_misc_t;

typedef struct {
    uint32_t* id;
    RoIs_basic_t* basic;
    RoIs_asso_t* asso;
    RoIs_motion_t* motion;
    RoIs_misc_t* misc;
    size_t _size;
    size_t _max_size;
} RoIs_t;