A contour line for a function of two variables is a curve connecting points where the function has the same particular value.
0
votes
0answers
6 views
OpenCV TypeError: contour is not a numpy array, neither a scalar
I'm trying to use OpenCV to extract tags from Nike images. This is a tutorial code taken from:
http://opencv-code.com/tutorials/ocr-ing-nikes-new-rsvp-program/
I've modified few lines of code though ...
1
vote
0answers
16 views
OpenCV concave and convex corner points of polygons
Problem
I am working on a project where I need to get the bounding boxes of dumbell like shapes. However, I need the fewest points possible, and the boxes need to fit the shapes at all corners. ...
0
votes
0answers
10 views
MATLAB Plot White Contour Line
I am trying to make a contourfm plot while having the contour lines show up white. I did 'LineColor', 'white', but when it draw the contour image in a movie, the white lines propagate instead of ...
0
votes
0answers
14 views
MATLAB Gradient in Lat Lon
I am trying to plot gradients in a movie. Making the movie part works, but my gradients code is not working. I'm also worried that just using 'gradient' will distort the map since I'm using lat and ...
0
votes
0answers
19 views
Detecting colored objects on a image which contains a dark background
I'm currently using OpenCV to try to detect objects on a black cloth covered table. The camera will not always be looking at the same direction (it's a robot's head) but only one image will be ...
0
votes
0answers
37 views
Matplotlib contour plot of matrix type
I'm getting hung trying to create a contour plot of three [1, m] numpy matrices. When I try to plot:
plt.contour(reg.theta[0,:], reg.theta[1,:], reg.J[0,:])
ValueError: The truth value of an array ...
1
vote
2answers
29 views
Matlab - Band-like diagram
I am trying to reproduce a band-like diagram, like the one in figure from windows defrag.
In principle, it can be easily obtained by doing a contourf of a matrix which is constant along one ...
0
votes
1answer
36 views
draw contour sort matlab
I have a problem.
I have a a set of x and y coordinates by which I can draw a contour or a closed figure. However during my operation within the program the order of coordinates may change. So now if ...
1
vote
1answer
28 views
Contour MATLAB Bleeding
I am using level sets to identify object boundaries in noisy data. I am also using contours to plot the detected boundary, but because of the noise, the contour bleeds as it approaches to object. Is ...
2
votes
1answer
43 views
matplotlib: preventing a few very large (or small) values to affect my contour
in plotting the data some times there are a few very large (or very small) numbers which, if not taken care of, will affect the contour in a bad way. a solution is to take out the 10% highest and ...
1
vote
1answer
54 views
How to Smooth a Plot in Matplotlib Without Losing Contour Lines?
I have some jagged contour plots that I need to smooth. I need to smooth them out without losing any of the contour lines. I have referred to these SO questions, but they don't quite offer a ...
0
votes
1answer
24 views
MATLAB Plotting dot in a specific area over a contourfm plot
I have a contourfm plot on which I want to place a dot. The contourfm plot by itself works fine with no error. But when I try to place a dot at a specific point, it overrides the contourfm plot and ...
1
vote
0answers
41 views
How to find the mean color of a connected component?
It seems like OpenCV does not have a direct method to find mean color of a connected component -or a contour.
I used pointPolygonTest; saved all the points and their colors inside my contour; than ...
2
votes
1answer
53 views
Count the no of pixels on a polygon
I have been taking an image and drawing a contour on it. I need to count the no of pixels and the positions of them too in three categories (in MATLAB)
The pixels that are outside the curve
The ...
0
votes
0answers
13 views
JavaCV: get the contour of a shape inside the image
Please is there any way to get the contour of an object/shape located within the input image using JavaCV or OpenCV?
Here is a picture of the input image I have for example:
...