--- ObjectMarker.cpp.orig	2021-11-21 07:01:09.000000000 -0600
+++ ObjectMarker.cpp	2021-11-21 07:30:47.000000000 -0600
@@ -1,10 +1,11 @@
 #include <opencv/cv.h>
 #include <opencv/cvaux.h>
 #include <opencv/highgui.h>
+#include <opencv2/imgproc.hpp>
 
 // for filelisting
 #include <stdio.h>
-#include <io.h>
+#include <sys/uio.h>
 // for fileoutput
 #include <string>
 #include <fstream>
@@ -56,7 +57,7 @@
 
 		//redraw ROI selection
 		image2=cvCloneImage(image);
-		cvRectangle(image2,cvPoint(roi_x0,roi_y0),cvPoint(x,y),CV_RGB(255,0,255),1);
+		cvRectangle(image2,cvPoint(roi_x0,roi_y0),cvPoint(x,y),cvScalar(CV_RGB(255,0,255)),1);
 		cvShowImage(window_name,image2);
 		cvReleaseImage(&image2);
     }
