BlueBear icon

redfilter.cpp

BlueBear | PRO | 01/03/15 08:43:11 PM UTC | 0 ⭐ | 486 👁️ | Never ⏰ | []
C++ |

630 B

|

None

|

0 👍

/

0 👎

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
 
using namespace std;
using namespace cv;
 
Mat redFilter(const Mat& src)
{
    assert(src.type() == CV_8UC3);
 
    Mat redOnly;
    inRange(src, Scalar(0, 0, 0), Scalar(0, 0, 255), redOnly);
 
    return redOnly;
}
 
int main(int argc, char** argv)
{
    Mat input = imread("colored_squares.png");
 
    imshow("input", input);
    waitKey();
 
    Mat redOnly = redFilter(input);
 
    imshow("redOnly", redOnly);
    waitKey();
 
    // detect squares after filtering...
 
    return 0;
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  • Syutrsz icon
    03/31/26 10:18:37 PM UTC
    text |

    0 B

    |

    0 👍

    /

    0 👎

    Best t33n active cpx link daily updates!
     Copy and paste the link in a new browser tab and then hit enter!
     https://crazyporn.@xxx/members/157354/?asgtbndr=1&play=true&spon=adworld&zone=400
     Remove the @ 
  • Zyubi icon
    04/05/26 02:27:01 AM UTC
    text |

    0 B

    |

    0 👍

    /

    0 👎

    Best t33n active cpx link daily updates!
     Copy and paste the link in a new browser tab and then hit enter!
     https://crazyporn.xxx/members/157354/?asgtbndr=1&play=true&spon=adworld&zone=400