2021-02-03 23:17:59 -0600 | received badge | ● Notable Question (source) |
2020-09-08 04:27:07 -0600 | received badge | ● Popular Question (source) |
2019-07-09 10:11:30 -0600 | commented answer | How can I get the values of the pixels that are inside a contour? Thanks a lot! I didn't get the user selection as a contour but I made a binary image of the input image with a lower and |
2019-07-09 09:34:04 -0600 | marked best answer | How can I get the values of the pixels that are inside a contour? I'm developing an application that allows the user to load an image, make a selection of a certain region (by drawing a random closed shape) and I want to have the values of the pixels that are inside this region but I'm having trouble doing so. All the functionality of drawing the shape on top of the image I've done it with PyQt and later the image with the draw on it is passed to a function where I want to analyze it with OpenCV. Here is an example of the input image: So basically I want to get the values of the pixels inside the red shape. I know OpenCV already has a ROI function, but unfortunately the ROI selection is a square shape and I can't make square selections. They have to be a shape drawn by the user. |
2019-07-09 09:34:04 -0600 | received badge | ● Scholar (source) |
2019-07-08 01:15:34 -0600 | received badge | ● Enthusiast |
2019-06-27 15:18:24 -0600 | asked a question | How can I get the values of the pixels that are inside a contour? How can I get the values of the pixels that are inside a contour? I'm developing an application that allows the user to |