X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fsensors%2Fdilatometer.h;h=d2240513ef37d53425b8d276492d849e938d23a2;hb=bd93dbb92da512a1bd585ed29bc46a5e8fc60015;hp=2c683d62524d76e5c6b0d18297c9f4b3cad5b5bf;hpb=d0b1d76f88063c93aa66c5dc9b5a48e2aa4dcfe3;p=matches%2FMCTX3420.git diff --git a/server/sensors/dilatometer.h b/server/sensors/dilatometer.h index 2c683d6..d224051 100644 --- a/server/sensors/dilatometer.h +++ b/server/sensors/dilatometer.h @@ -11,6 +11,24 @@ //Number of samples of the image to take #define SAMPLES 600 +// 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