Must have OpenCV 2.0 or a newer version installed.
Result image is stored in a folder (locateed in same folder as the source) called test. Please create this folder before running the program.
Adjust threshold values accordingly to filter the correct amount
Also, adjust the erode parameters accordingly.
Change threshold value accordingly: program will truncate everything in the image received from webcam except areas with threshold values between threshvalue and maxthresh.
Makefile: Makefile: (works on ubuntu 11.10 and later versions.. for previous versions, replace LDLIBS with LDFLAGS).
Example - Path of a robot turning a circle traced by filter_threshold:
Note: A white circular disc was mounted on the centre of the robot. This disc was filtered by the program and the rest of the image was truncated.
-- PremNirmal - 2011-08-23
attachment="Makefile" attr="" comment="Makefile (works on ubuntu 11.10 and later versions.. for previous versions, replace LDLIBS with LDFLAGS)." date="1336249383" name="Makefile" path="Makefile" size="72" stream="Makefile" tmpFilename="/usr/tmp/CGItemp28454" user="PremNirmal" version="1"