Subversion Repositories OpenCV2-Cookbook

Rev

Rev 3 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 5
Line 13... Line 13...
13
   and any consequent failure, is purely the responsibility of the user.
13
   and any consequent failure, is purely the responsibility of the user.
14
 
14
 
15
   Copyright (C) 2010-2011 Robert Laganiere, www.laganiere.name
15
   Copyright (C) 2010-2011 Robert Laganiere, www.laganiere.name
16
\*------------------------------------------------------------------------------------------*/
16
\*------------------------------------------------------------------------------------------*/
17
17
18
#include "colordetector.h"
18
#include "color_detector/colordetector.h"
-
 
19
#include <opencv2/imgproc/imgproc.hpp>
19
       
20
       
20
cv::Mat ColorDetector::process(const cv::Mat &image) {
21
cv::Mat ColorDetector::process(const cv::Mat &image) {
21
       
22
       
22
          // re-allocate binary map if necessary
23
          // re-allocate binary map if necessary
23
          // same size as input image, but 1-channel
24
          // same size as input image, but 1-channel