Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Adafruit-16-Ch-PWM-Servo-Driver HCSR04 PID PololuQik2 QEI Sharp mbed-rtos
Fork of theRobot by
ShapeDetect.h
- Committer:
- tashworth
- Date:
- 2014-04-02
- Revision:
- 16:8bb212df81b7
- Parent:
- 15:78f5e937f6ab
- Child:
- 17:a5bb85ee205d
File content as of revision 16:8bb212df81b7:
#ifndef SHAPEDETECT_H_
#define SHAPEDETECT_H_
/* theshold for setting binary output */
#define THRESHOLD 80
//areas from camera 11" from ground
#define TRIANGLE_AREA 2100
#define SQUARE_AREA 3600
#define AREA_TOLERANCE 100
/* modes for image processing */
#define BINARY 1
#define GREYSCALE 2
#define DECIMAL 3
#define RIG_IP_THRESHOLD 1000
#define RIG_1_IP_THRESHOLD 3000
void lrf_baudCalibration(void);
void printImageToFile(int arrayType_f);
int edgeDetection(void);
void ImageToArray(int arrayType_a);
void centerMass(int *xcoord, int *ycoord, int *s_area);
void clearBounds(void);
int shapeDetection(void);
int getDistance(void);
int rigDetectionImgProc(void);
int get_com_x(void);
int get_com_y(void);
int get_com_a(void);
#endif
