I would like to split an image which is captured from a webcam into N*N squares, so that I can process those squares separably.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to use a ROI (Region Of Interest) option of OpenCV image structures.
In C interface you need a function cvSetImageROI, in C++ it will be operator() of
cv::Matclass. Here is a simple C++ sample for processing image by NxN blocks:C version: