--- 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 #include #include +#include // for filelisting #include -#include +#include // for fileoutput #include #include @@ -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); }