X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fsensors%2Fdilatometer.h;h=d2240513ef37d53425b8d276492d849e938d23a2;hb=797dd747d118bdfb374d220017b035382c4ec3c7;hp=e8be7d1fb37aaadc0332049d250b4c0c227986b4;hpb=3977290418955f0f737c4ac727565e34b687b8d1;p=matches%2FMCTX3420.git diff --git a/server/sensors/dilatometer.h b/server/sensors/dilatometer.h index e8be7d1..d224051 100644 --- a/server/sensors/dilatometer.h +++ b/server/sensors/dilatometer.h @@ -11,9 +11,24 @@ //Number of samples of the image to take #define SAMPLES 600 -//Scaling factor required to change from pixels to mm +// Canny Edge algorithm variables +#define BLUR 5 +#define LOWTHRESHOLD 30 +#define RATIO 3 +#define KERNELSIZE 3 + +//Scaling factor required to change from pixels to nm #define SCALE 1 // Note camera has not been calibrated yet so result will be in pixels +/** + * Enum of Dilatometer IDs + */ +typedef enum +{ + DIL_POS, + DIL_DIFF +} DilatometerID; + extern bool Dilatometer_Init(const char * name, int id); // Initialise the dilatometer extern bool Dilatometer_Cleanup(int id); // Cleanup extern bool Dilatometer_Read(int id, double * value); // Read the Dilatometer