Tags:
create new tag
view all tags

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.

resultoriginal_100_350.jpg

-- PremNirmal - 2011-08-23

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatEXT Makefile r1 manage 0.1 K 2012-05-05 - 20:23 UnknownUser Makefile (works on ubuntu 11.10 and later versions.. for previous versions, replace LDLIBS with LDFLAGS).
C source code filecpp filter_threshold.cpp r2 r1 manage 2.4 K 2012-05-05 - 20:22 UnknownUser  
JPEGjpg resultoriginal_100_350.jpg r1 manage 25.3 K 2011-08-23 - 20:22 UnknownUser  
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2012-05-06 - PremNirmal
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback