jabcode
|
Symbol sampling. More...
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "jabcode.h"
#include "detector.h"
#include "decoder.h"
Macros | |
#define | SAMPLE_AREA_WIDTH (CROSS_AREA_WIDTH / 2 - 2) |
#define | SAMPLE_AREA_HEIGHT 20 |
Functions | |
jab_bitmap * | sampleSymbol (jab_bitmap *bitmap, jab_perspective_transform *pt, jab_vector2d side_size) |
Sample a symbol. More... | |
jab_bitmap * | sampleSymbolwithNc (jab_bitmap *bitmap, jab_perspective_transform *pt, jab_vector2d side_size, jab_int32 symbol_type, jab_bitmap *ch[]) |
Sample a symbol. More... | |
jab_bitmap * | sampleCrossArea (jab_bitmap *bitmap, jab_perspective_transform *pt) |
Sample a cross area between the host and slave symbols. More... | |
Symbol sampling.
libjabcode - JABCode Encoding/Decoding Library
Copyright 2016 by Fraunhofer SIT. All rights reserved. See LICENSE file for full terms of use and distribution.
Contact: Huajian Liu liu@s Waldemar Berchtold it.f raunh ofer .dewalde mar. berch told @sit. frau nhofe r.de
jab_bitmap* sampleCrossArea | ( | jab_bitmap * | bitmap, |
jab_perspective_transform * | pt | ||
) |
Sample a cross area between the host and slave symbols.
bitmap | the image bitmap |
pt | the transformation matrix |
jab_bitmap* sampleSymbol | ( | jab_bitmap * | bitmap, |
jab_perspective_transform * | pt, | ||
jab_vector2d | side_size | ||
) |
Sample a symbol.
bitmap | the image bitmap |
pt | the transformation matrix |
side_size | the symbol size in module |
jab_bitmap* sampleSymbolwithNc | ( | jab_bitmap * | bitmap, |
jab_perspective_transform * | pt, | ||
jab_vector2d | side_size, | ||
jab_int32 | symbol_type, | ||
jab_bitmap * | ch[] | ||
) |
Sample a symbol.
bitmap | the image bitmap |
pt | the transformation matrix |
side_size | the symbol size in module |
symbol_type | the symbol type (0,2,3,4,5: metadata for Nc will be sampled as black/white) |
ch | the binarized color channels of the bitmap |