contour Questions
3
Solved
I have an image that I found contours on with skimage.measure.find_contours() but now I want to create a mask for the pixels fully outside the largest closed contour. Any idea how to do this?
Mod...
Fishtail asked 22/9, 2016 at 15:7
3
In the above image, if the entire width is specified say 30'5". How do I calculate height and width for each individual contour on that image using opencv
Arjun asked 10/2, 2020 at 11:54
8
Solved
I have a problem to get my head around smoothing and sampling contours in OpenCV (C++ API).
Lets say I have got sequence of points retrieved from cv::findContours (for instance applied on this this...
4
Solved
I'm trying to find (but not draw!) contour lines for some data:
from pprint import pprint
import matplotlib.pyplot
z = [[0.350087, 0.0590954, 0.002165], [0.144522, 0.885409, 0.378515],
[0.027...
Cockburn asked 18/8, 2013 at 23:26
1
Solved
I am trying to determine the width of an artery and have made a very rough program to verify that drawContours is appropriate. My problem is that the contour is only only printing black or white li...
3
Solved
I am generating a scatter plot of ~300k data points and am having the issue that it is so over-crowded in some places that no structure is visible - So I had a thought!
I want to have the plot gen...
Acanthoid asked 11/10, 2013 at 6:52
4
Solved
I have a set of boundary points of an object.
I want to draw it using opencv as contour.
I have no idea that how to convert my points to contour representation.
To the same contour representation w...
Pastoralize asked 4/1, 2013 at 16:52
2
Solved
I have used an adaptive thresholding technique to create a picture like the one below:
The code I used was:
image = cv2.adaptiveThreshold(image, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_...
Speedometer asked 4/12, 2014 at 16:46
3
Solved
I am working on Retinal fundus images.The image consists of a circular retina on a black background. With OpenCV, I have managed to get a contour which surrounds the whole circular Retina. What I n...
Stivers asked 27/2, 2015 at 6:56
4
Solved
I would like to get data from a single contour of evenly spaced 2D data (an image-like data).
Based on the example found in a similar question: How can I get the (x,y) values of the line that is p...
Purgatory asked 14/4, 2011 at 15:59
2
Solved
I am using openCV with python to extract contours from an image. Now I need to export these contour paths (list) as an svg paths. How can I achieve this ?
code:
ret,thresh = cv2.threshold(imgray...
3
Solved
I'm using OpenCV 3.0.0 on Python 2.7.9. I'm trying to track an object in a video with a still background, and estimate some of its properties. Since there can be multiple moving objects in an image...
Midriff asked 20/10, 2015 at 10:35
1
Solved
Desired feature
I would like to be able to call
ax.legend()
on an axis containing a contourf plot and automatically get the legend (see plot below for an example).
More Detail
I know how to ...
Panter asked 14/7, 2019 at 2:41
2
Solved
I'm working with some custom functions and I need to draw contours for them based on multiple values for the parameters.
Here is an example function:
I need to draw such a contour plot:
Any ...
1
Solved
I'm trying to count the number of white dots after thresholding but my code doesn't seem to be detecting anything
Input image
#Standard imports
#!/usr/bin/python
# Standard imports
import cv2
...
Roaring asked 11/7, 2019 at 18:44
2
Solved
My task is to detect the cracks on the soil surface and calculate crack's total area. I used Canny edge detection for this purpose.
Input image
Result
My next step is to convert canny edg...
Macarthur asked 25/6, 2019 at 12:47
5
Solved
The matplotlib.pyplot.contour() function takes 3 input arrays X, Y and Z.
The arrays X and Y specify the x- and y-coordinates of points, while Z specifies the corresponding value of the function of...
Aurelea asked 4/2, 2017 at 21:40
2
Solved
I extracted the contours of an image, that you can see here:
However, it has some noise.
How can I smooth the noise? I did a close up to make clearer what I want to meant
Original image that I'...
2
Solved
My simple Python code is this
import cv2
img=cv2.imread('Materials/shapes.png')
blur=cv2.GaussianBlur(img,(3,3),0)
gray=cv2.cvtColor(blur,cv2.COLOR_BGR2GRAY)
returns,thresh=cv2.threshold(gr...
Mistrial asked 12/1, 2019 at 22:56
2
Solved
Is it possible to get the expanded or contracted version of a contour?
For example in the below image, I have used cv::findContour() and cv::drawContour on a binary image to get the contours:
I...
2
Solved
I have data with two time axes and measurements for each cell. From this I create a heatmap. I also know for each cell whether the measurement is significant.
My problem is to draw a contour line...
Profound asked 20/3, 2019 at 10:51
1
I'm super new to opencv, so pardon my ignorance...
Basically: I have an object of interest in my image. I would like to extract it.
My problems arise from downscaling the original image in order...
2
Solved
I'd like to create a contour plot on th xy plane from concentration data at the following coloured points in the fist figure. I don't have corner points at each height so I need to extrapolate the ...
Herrmann asked 16/2, 2019 at 19:29
5
Solved
I am interested in making a contour plot in Bokeh. I have not been able to find anything on the net so far.
As a reminder, this is contour plot:
Any help would be appreciated. I would also welc...
2
Solved
So I decided to get started learning Open CV and Python together!
My first project is to detect moving objects on a relatively still background and then detect their average color to sort them. Th...
© 2022 - 2024 — McMap. All rights reserved.