contour Questions
4
Solved
When I plot something with contourf, I see at the bottom of the plot window the current x and y values under the mouse cursor.
Is there a way to see also the z value?
Here an example contourf:
im...
Blairblaire asked 9/4, 2012 at 23:21
4
For an algorithm I am using contour, but I'm only interested in its collection of paths. Since I have called
pylab inline
from the start, and it is now too painful to rewrite the code without t...
Unideaed asked 21/5, 2015 at 14:36
2
I've been trying for a while to find the centre of a curved shape (for example a banana). I can do all the basics, such as creating a binary image, and locating the contour. However, the centroid f...
5
Solved
I can't seem to find the answer anywhere! I found a discussion here, but trying this I get a TypeError: 'NoneType' object is not iterable:
>>> import numpy as np
>>> import matpl...
Theine asked 7/5, 2012 at 23:3
6
Solved
I'm trying to export the results of the scikit-image.measure.find_contours() function as a shapefile or geojson after running on a satellite image.
The output is an array like (row, column) with c...
Deforest asked 5/1, 2017 at 14:35
2
Similar to many other researchers on stackoverflow who are trying to plot a contour graph out of 4D data (i.e., X,Y,Z and their corresponding value C), I am attempting to plot a 4D contour map out ...
Toothlike asked 8/5, 2021 at 17:21
3
Solved
I'm using OpenCV for image processing.
I am looking for a human body, wich I want to isolate (segment).
Currently, I am able to find the contour of the body, and approximate the contour with a Pol...
Redintegration asked 4/5, 2012 at 11:14
2
Solved
I am trying to construct a graph consisting of 2-3 filled.contour plots next to each other. The color scale is the same for all plots, and I would like only one z value key plot. I am having diffic...
2
Solved
I'd like to plot a transparent contour plot over an image file in matplotlib/pyplot.
Here's what I got so far...
I have a 600x600 pixel square image file test.png that looks like so:
I would l...
Daft asked 18/9, 2015 at 12:47
3
I am doing a real time motion detection program. I find that there are a lot of contour made in my different image after i used background subtraction method . i would like to ask is there any meth...
6
Solved
I recently created a custom contour chart in excel to display my data colored with a heat-map color mapping. I'm using a Excel 2011 on a Mac. I can't find a way to reuse the saved template. The hel...
Speakeasy asked 30/6, 2013 at 3:12
2
Solved
When using matplotlib with a contour plot, I'm having trouble getting the colorbar to display as I want. I've read through numerous similar examples, but have still not been able to get what I want...
Baribaric asked 29/4, 2011 at 0:28
3
Solved
If I plot a 2D array and contour it, I can get the access to the segmentation map, via cs = plt.contour(...); cs.allsegs but it's parameterized as a line. I'd like a segmap boolean mask of what's i...
Liggett asked 7/6, 2013 at 2:46
2
I am trying to create a contour plot. I would like to have depth on the Y-axis and time on the X-axis. Right now this is the code that I am using:
par <- ggplot(up_PAR, aes(Time.hour.of.the.day...
1
Solved
I have a database P with columns X, Y and Z:
x=0:1:50;
r=3.*rand(1,51);
P=[cos(x')+r',sin(x')+r',sin(x'+r').*cos(x')+r'];
P = sortrows(P,[1,2]);
N = 500;
xv = linspace(min(P(:,1)), max(P(:,1)), N);...
Fonseca asked 20/10, 2022 at 15:42
5
Solved
I'm using gnuplot for contour plot of a several function. This is for optimization problem.
I have 3 functions:
f(x,y)
g1(x,y)
g2(x,y)
both g1(x,y) and g2(x,y) are constraints and would like t...
2
Solved
I have followed the example here for generating a filled contour plot using gnuplot. The gnuplot commands and output are:
reset
f(x,y)=sin(1.3*x)*cos(.9*y)+cos(.8*x)*sin(1.9*y)+cos(y*.2*x)
set xra...
3
OpenCV in Python provides the following code:
regions, hierarchy = cv2.findContours(binary_image, cv2.RETR_LIST, cv2.CHAIN_APPROX_SIMPLE)
for region in regions:
x, y, w, h = cv2.boundingRect(re...
3
Solved
I was working on the example of finding and drawing contours in opencv python.
But when I run the code, I see just a dark window with no contours drawn. I don't know where I am going wrong.
The cod...
3
Solved
I am trying to use OpenCV with Python in order to detect squares in a live video feed from a Raspberry Pi camera. However, the cv2.GaussianBlur and cv2.Canny functions in the code below are causing...
9
Solved
I'm writing an opencv program and I found a script on another stackoverflow question: Computer Vision: Masking a human hand
When I run the scripted answer, I get the following error:
Traceback (m...
Outcross asked 26/8, 2014 at 11:39
4
Solved
I have 2 contours (cont1 and cont2) received from cv2.findContours(). How do I know if they intersect or not? I don't need coordinates, I only need a boolean True or False.
I have attempted differ...
2
Solved
I am trying to implement the algorithm found here in python with OpenCV.
I am trying to implement the part of the algorithm that remove irrelevant edge boundaries based on the number of interior bo...
Despinadespise asked 2/8, 2012 at 16:48
3
I am learning OpenCv. I have a helical gear image to find teeth.
Till now I have tried to find the contours, and then count the teeth. I am able to find the contour also the coordinates of the con...
1
I am trying to understand Hierarchy and findContours, from opencv c++, but am finding it difficult.
I did go through this question here, but I still am not able to get it clearly. I tried using it...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.