|
Revision 417, 1.4 kB
(checked in by anthony_rowe, 2 years ago)
|
noise filter
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
#ifndef CC3_COLOR_TRACK_H |
|---|
| 20 |
#define CC3_COLOR_TRACK_H |
|---|
| 21 |
|
|---|
| 22 |
#include <stdint.h> |
|---|
| 23 |
#include "cc3.h" |
|---|
| 24 |
#include "cc3_ilp.h" |
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
#define MAX_BINARY_WIDTH 80 |
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
typedef struct { |
|---|
| 31 |
uint16_t x0,y0,x1,y1; |
|---|
| 32 |
uint32_t centroid_x, centroid_y; |
|---|
| 33 |
uint32_t num_pixels; |
|---|
| 34 |
uint32_t int_density; |
|---|
| 35 |
uint8_t noise_filter; |
|---|
| 36 |
bool track_invert; |
|---|
| 37 |
uint8_t binary_scanline[MAX_BINARY_WIDTH]; |
|---|
| 38 |
cc3_pixel_t upper_bound; |
|---|
| 39 |
cc3_pixel_t lower_bound; |
|---|
| 40 |
uint16_t scratch_x,scratch_y; |
|---|
| 41 |
} cc3_track_pkt_t; |
|---|
| 42 |
|
|---|
| 43 |
uint8_t cc3_track_color_scanline_start(cc3_track_pkt_t *pkt); |
|---|
| 44 |
uint8_t cc3_track_color_scanline(cc3_image_t *img, cc3_track_pkt_t *pkt); |
|---|
| 45 |
uint8_t cc3_track_color_scanline_finish(cc3_track_pkt_t *pkt); |
|---|
| 46 |
|
|---|
| 47 |
uint8_t cc3_track_color(cc3_track_pkt_t *pkt); |
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
#endif |
|---|