+/**
+ * Initialise the dilatometer
+ */
+void Dilatometer_Init()
+{
+ // Make an initial reading (will allocate memory the first time only).
+ double val;
+ Dilatometer_GetEdge(&val, 1);
+}
+
+// Overlays a line over the given edge position
+void Draw_Edge(double edge)
+{
+ CvScalar value;
+ value.val[0]=244;
+ for( int i = 0; i < g_srcGray->rows; i++)
+ {
+ cvSet2D(g_edges,i,edge,value);
+ }
+ cvShowImage("display", g_edges);
+ cvWaitKey(0);
+ //cvSaveImage("test_edge_avg.jpg",g_edges,0);
+}
+
+/* // Test algorithm
+static void Dilatometer_GetImageTest( )
+{
+ //Generates Test image
+ //Dilatometer_TestImage();
+
+ //Load Test image
+ g_srcGray = cvLoadImageM ("testimage4.jpg",CV_LOAD_IMAGE_GRAYSCALE );
+}*/
+