Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV mixChannels

I'm the new one,The key code is: void find_squares(Mat& image, vector<vector<point> >& squares) { // blur will enhance edge detection Mat blurred(image); medianBlur(image, blurred, 9); Mat gray0(blurred.size(), CV_8U), gray; vector<vector<point> > contours; // find squares in every color plane of the image for (int c = 0; c < 3; c++) { const int ch[] = {c, 0}; mixChannels(&blurred, 1, &gray0, 1, ch, 1);

but the function mixChannels can not pass, the system remind me : Invalid arguments ' Candidates are: void mixChannels(const cv::Mat *, ?, cv::Mat *, ?, const int *, ?)

and some other function also appear the same error I don't know why ,I hope someone can help me ,Thanks in advanced

click to hide/show revision 2
the 101010 button, it's your friend !

updated 2013-07-26 02:57:51 -0600

berak gravatar image

OpenCV mixChannels

I'm the new one,The key code is: is:

void find_squares(Mat& image, vector<vector<point> vector<vector<Point> >& squares)
{
    // blur will enhance edge detection
    Mat blurred(image);
    medianBlur(image, blurred, 9);
    Mat gray0(blurred.size(), CV_8U), gray;
    vector<vector<point> vector<vector<Point> > contours;
    // find squares in every color plane of the image
    for (int c = 0; c < 3; c++)
    {
        const int ch[] = {c, 0};
        mixChannels(&blurred, 1, &gray0, 1, ch, 1);

1);

but the function mixChannels can not pass, the system remind me : Invalid arguments ' Candidates are: void mixChannels(const cv::Mat *, ?, cv::Mat *, ?, const int *, ?)

and some other function also appear the same error I don't know why ,I hope someone can help me ,Thanks in advanced

OpenCV mixChannels

image description I'm the new one,The key code is:is in picture

void find_squares(Mat& image, vector<vector<Point> >& squares)
{
    // blur will enhance edge detection
    Mat blurred(image);
    medianBlur(image, blurred, 9);
    Mat gray0(blurred.size(), CV_8U), gray;
    vector<vector<Point> > contours;
    // find squares in every color plane of the image
    for (int c = 0; c < 3; c++)
    {
        const int ch[] = {c, 0};
        mixChannels(&blurred, 1, &gray0, 1, ch, 1);

but the function mixChannels can not pass, the system remind me : Invalid arguments ' Candidates are: void mixChannels(const cv::Mat *, ?, cv::Mat cimage descriptionv::Mat *, ?, const int *, ?)

and some other function also appear the same error I don't know why ,I hope someone can help me ,Thanks in advanced