root/trunk/lib/cc3-ilp/cc3_color_track.h

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  * Copyright 2006  Anthony Rowe and Adam Goode
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
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 // MAX_BINARY_WIDTH * 8 (bits/int)
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 //uint8_t cc3_track_color_img(cc3_image_t *img, cc3_track_pkt_t *pkt);
49
50 #endif
Note: See TracBrowser for help on using the browser.