Commit 3ddf126361cd0359152099ae21f3e4b1abbdb4dd

Authored by Josh Klontz
1 parent 0034448d

introduced br_universal_template

openbr/universal_template.cpp 0 → 100644
  1 +#include "universal_template.h"
  2 +
openbr/universal_template.h 0 → 100644
  1 +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2 + * Copyright 2014 Noblis *
  3 + * *
  4 + * Licensed under the Apache License, Version 2.0 (the "License"); *
  5 + * you may not use this file except in compliance with the License. *
  6 + * You may obtain a copy of the License at *
  7 + * *
  8 + * http://www.apache.org/licenses/LICENSE-2.0 *
  9 + * *
  10 + * Unless required by applicable law or agreed to in writing, software *
  11 + * distributed under the License is distributed on an "AS IS" BASIS, *
  12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
  13 + * See the License for the specific language governing permissions and *
  14 + * limitations under the License. *
  15 + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  16 +
  17 +#ifndef BR_UNIVERSAL_TEMPLATE_H
  18 +#define BR_UNIVERSAL_TEMPLATE_H
  19 +
  20 +#include <stdint.h>
  21 +
  22 +/*!
  23 + * \brief A flat template format for representing arbitrary feature vectors.
  24 + */
  25 +struct br_universal_template
  26 +{
  27 + uint8_t imageID[16]; /*!< MD5 hash of the undecoded origin file. */
  28 + uint8_t templateID[16]; /*!< MD5 hash of _data_. */
  29 + int32_t algorithmID; /*!< type of _data_. */
  30 + uint32_t size; /*!< length of _data_. */
  31 + uint8_t data[]; /*!< _size_-byte buffer. */
  32 +};
  33 +
  34 +#endif // BR_UNIVERSAL_TEMPLATE_H