Notes on filter_threshold
- 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.
- Source: filter_threshold.cpp: filter_threshold.cpp
- 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