2017-08-09 21:09:15 -0600 | received badge | ● Enthusiast |
2017-08-03 23:04:54 -0600 | commented answer | How to find the average pixel value for a rectangular region As only mean of rectangular region in image is required, so rectangular region should be cropped before applying meanStdDev. |
2017-08-03 03:53:21 -0600 | answered a question | How to find the average pixel value for a rectangular region Firstly store rectangular region in another matrix and then you can use meanStdDev to calculate mean value of matrix. |
2017-08-03 00:15:01 -0600 | answered a question | How would you get all the points on a line? Try OpenCV findcontours function to find contour of each line and then using contour properties you can easily find all point coordinates in each line (contour). Example if you firstly find contours of all lines using following function: findContours(input_image, contours_all, hierarchy, CV_RETR_TREE, CV_CHAIN_APPROX_SIMPLE, cv::Point(0, 0)); Then use following code to store all points of ith line in image: std::vector<cv::point> points = contours_all[i]; |