Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

phblob.h File Reference


Detailed Description

Definition in file phblob.h.

#include <phStdint.h>
#include <ImageDefinitions.h>

Go to the source code of this file.

Classes

struct  phblob_coord_t
struct  phblob_line_s
struct  phblob_t
struct  phblob_data_t
struct  phblob_args_t

Defines

#define phSEGMENT_CONNECTION_COUNT   6
#define LAST_UP_VAL   (1)
#define LAST_DOWN_VAL   (3)
#define FIRST_UP_VAL   (4)
#define FIRST_DOWN_VAL   (5)
#define LEFT_VAL   (2)
#define RIGHT_VAL   (0)
#define OPPOSITE_DIR_BIT(dir)   (1<<((dir+2) %4))
#define LAST_UP_PTR(segptr)   (segptr->connection[LAST_UP_VAL])
#define LAST_DOWN_PTR(segptr)   (segptr->connection[LAST_DOWN_VAL])
#define UP_PTR(s)   LAST_UP_PTR(s)
#define DOWN_PTR(s)   LAST_DOWN_PTR(s)
#define FIRST_UP_PTR(segptr)   (segptr->connection[FIRST_UP_VAL])
#define FIRST_DOWN_PTR(segptr)   (segptr->connection[FIRST_DOWN_VAL])
#define LEFT_PTR(segptr)   (segptr->connection[LEFT_VAL])
#define RIGHT_PTR(segptr)   (segptr->connection[RIGHT_VAL])
#define LAST_UP_INDEX(segptr)   (segptr->connection_index[LAST_UP_VAL])
#define LAST_DOWN_INDEX(segptr)   (segptr->connection_index[LAST_DOWN_VAL])
#define UP_INDEX(s)   LAST_UP_INDEX(s)
#define DOWN_INDEX(s)   LAST_DOWN_INDEX(s)
#define FIRST_UP_INDEX(segptr)   (segptr->connection_index[FIRST_UP_VAL])
#define FIRST_DOWN_INDEX(segptr)   (segptr->connection_index[FIRST_DOWN_VAL])
#define LEFT_INDEX(segptr)   (segptr->connection_index[LEFT_VAL])
#define RIGHT_INDEX(segptr)   (segptr->connection_index[RIGHT_VAL])
#define phBLOB_COLOR   (0)
#define phBLOB_NEIGHBOR   (1)
#define phBLOB_DRAW_ALL   (1<<0)
#define phBLOB_CLEAR_IMG   (1<<3)
#define phBLOB_DRAW_INDEX   (1<<1)
#define phBLOB_COLOR_BLACK   (1<<2)

Typedefs

typedef phblob_coord_t phblob_coord_type
typedef phblob_line_s phblob_line_segment
typedef enum visited_e phblob_visited_enum
typedef phblob_t phblob
typedef phblob_data_t phblob_data
typedef phblob_args_t phblob_args

Enumerations

enum  visited_e { RightVisited = (1<<0), UpVisited = (1<<1), LeftVisited = (1<<2), DownVisited = (1<<3) }

Functions

int phblob_data_new (phblob_data **data)
int phblob_data_init (phblob_data *data)
int phblob_data_reset (phblob_data *data)
int phblob_data_free (phblob_data **data)
int phblob_data_copy (phblob_data *in, phblob_data *out)
int phblob_data_relink_line_ptrs (phblob_data *data)
int phblob_find_line_segments_color (phblob_args *args, phblob_data *data)
int phblob_find_line_segments_neighbor (phblob_args *args, phblob_data *data)
int phblob_link_line_segments (phblob_args *args, phblob_data *data)
int phblob_draw_blob_rects (uint8_t *imgptr, uint32_t width, uint32_t height, uint32_t format, const phColor *color, phblob_data *blobs, uint32_t index, uint32_t min_size, uint32_t flag)
int phblob_color_lines (uint8_t *imgptr, uint32_t width, uint32_t height, uint32_t format, const phColor *color, phblob_data *data, uint32_t blob_min_size, uint32_t index, uint32_t flag)
int phblob_create_blobs (uint32_t width, uint32_t height, phblob_data *data)
int phblob_sort_blobs (phblob_data *data, uint32_t method)




Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo


Generated on Sat Jun 16 02:44:24 2007 for phission by  doxygen 1.4.4