[Robotvision-commit] SF.net SVN: robotvision:[17] vision
Brought to you by:
phildavidson
From: <phi...@us...> - 2010-05-31 11:17:20
|
Revision: 17 http://robotvision.svn.sourceforge.net/robotvision/?rev=17&view=rev Author: phildavidson Date: 2010-05-31 11:17:12 +0000 (Mon, 31 May 2010) Log Message: ----------- Final pipe Modified Paths: -------------- vision/src/main.cpp vision/src/test2.cpp Added Paths: ----------- vision/images/test7.PNG vision/videos/cuauvFinalForward.avi Added: vision/images/test7.PNG =================================================================== (Binary files differ) Property changes on: vision/images/test7.PNG ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: vision/src/main.cpp =================================================================== --- vision/src/main.cpp 2010-05-30 02:07:09 UTC (rev 16) +++ vision/src/main.cpp 2010-05-31 11:17:12 UTC (rev 17) @@ -177,9 +177,14 @@ int sthreshold = 86, erode = 4, dialate = 8; - int hlower = 127, hupper = 25;/* - here hlower is the lower cut off and the hupper is the upper cut off for hue values of red.*/ + int hlower = 127, hupper = 25; + //int sthreshold = 11, erode = 3, dialate = 6; + + //int hlower = 127, hupper = 45; + + /*here hlower is the lower cut off and the hupper is the upper cut off for hue values of red.*/ + int i, j, k;//for iterations int temp = 0;//if we use a temporary var @@ -303,7 +308,7 @@ } -/* + if(retElipse.angle!=-1) { cvLine(monoimgbot, cvPoint(monoimgbot->width / 2, monoimgbot->height / 2), cvPoint((monoimgbot->width / 2) + (100 * (sin((-retElipse.angle) @@ -323,8 +328,8 @@ } -*/ + // Show image. HighGUI use. @@ -344,6 +349,7 @@ CvCapture* capture = cvCreateFileCapture("videos/pipe3.avi"); //CvCapture* capture = cvCreateFileCapture("videos/ets2007pipe.avi"); //CvCapture* capture = cvCreateFileCapture("videos/ets2007buoy.avi"); + //CvCapture* capture = cvCreateFileCapture("videos/cuauvFinalForward.avi"); IplImage *frame; Modified: vision/src/test2.cpp =================================================================== --- vision/src/test2.cpp 2010-05-30 02:07:09 UTC (rev 16) +++ vision/src/test2.cpp 2010-05-31 11:17:12 UTC (rev 17) @@ -5,7 +5,7 @@ #include"cv.h" #include"highgui.h" #include"stdio.h" -int bmain() { +int nmain() { int sthreshold = 68, erode = 4, dialate = 8; @@ -50,8 +50,8 @@ //frame = cvLoadImage("images/3dballs.jpg", 1); //frame=cvLoadImage("images/flipper.png",1); - frame=cvLoadImage("images/test6.png",1); - //frame=cvLoadImage("images/pipe.png",1); + //frame=cvLoadImage("images/test7.png",1); + frame=cvLoadImage("images/pipe.png",1); if (frame == NULL) { puts("unable to load the frame"); Added: vision/videos/cuauvFinalForward.avi =================================================================== (Binary files differ) Property changes on: vision/videos/cuauvFinalForward.avi ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |