Questions tagged [contour]

A contour line for a function of two variables is a curve connecting points where the function has the same particular value.

From wiki,

a contour line for a function of two variables is a curve connecting points where the function has the same particular value. The gradient of the function is always perpendicular to the contour lines. When the lines are close together the magnitude of the gradient is large: the variation is steep. A level set is a generalization of a contour line for functions of any number of variables.

Contour lines are curved or straight lines on a map describing the intersection of a real or hypothetical surface with one or more horizontal planes. The configuration of these contours allows to infer relative gradient of a parameter and estimate that parameter at specific places. Contour lines may be either traced on a visible three-dimensional model of the surface, as when viewing a stereo-model plots elevation contours, or interpolated from estimated surface elevations, as when a computer program threads contours through a network of observation points of area centroids. In the latter case, the method of interpolation affects the reliability of individual isolines and their portrayal of slope, pits and peaks.

2744 questions
1
vote
0 answers

Arc length of an irregular curve in Python

I'm trying to find arc length of a vessel by choosing two points on it. The function cv.ArcLength() raises the following exception: TypeError: All elements of sequence 'curve' must be same size Here is my code: contours,hierarchy =…
1
vote
0 answers

Digitize a file showing spatial area using Matlab

I have the following scanned image of an area which I want to digitize in terms of coordinates and depths, where depths are shown in terms of contour lines. The depths are shown in the above image by the number over the contour line. I would like to…
user238469
1
vote
0 answers

How to save the extracted Contours in a separate data type

I am new to openCV and therefore I have a few problems. My code so far looks like this: List contours = mDetector.getContours(); Imgproc.drawContours(mRgba, contours, -1, CONTOUR_COLOR); This code draws the extracted contours. I want…
esco
  • 13
  • 5
1
vote
1 answer

How to plot 3D contours on a 3D surface (built by patch) in MATLAB?

I just created a 3D surface in MATLAB using the code below : p = patch ( 'Vertices' , XYZ , 'Faces' , F ) ; set ( gca , 'CLim' , [-2000 1500] ) ; set ( p , 'FaceColor' , 'interp' , 'FaceVertexCData' , V , 'EdgeColor' , 'none' , ... ...…
Omid1989
  • 121
  • 1
  • 5
  • 13
1
vote
3 answers

How to make dotted/dashed lines look realistic in contour plots - Matlab

The dotted/dashed lines in Matlab graphs look somewhat fine in the figure window, but when printed, they lose resolution and look really bad. See Figure below. How can I make the dotted/dashed lines look exactly like on screen?
Oliver Amundsen
  • 1,491
  • 2
  • 21
  • 40
1
vote
2 answers

Approximating a contour with rotated rectangles

After some color detection and binary thresholding, I use the following code to find the contours and draw them onto the image: using (MemStorage stor = new MemStorage()) { Contour contours = img.FindContours( …
salgarcia
  • 507
  • 5
  • 16
1
vote
0 answers

Is it possible to get orientation theta values from edge detection using contourlet transform? (like sobel operator)

I have the contourlet tool box with me in running state (Matlab) http://www.ifp.illinois.edu/%7Eminhdo/software/contourlet_toolbox.zip I have seen the pyramid structure of contourlets transformation, and run some sample demo functions of it when…
yunas
  • 4,143
  • 1
  • 32
  • 38
1
vote
1 answer

Contour Plot in matlab

I have made a contour plot in matlab using the inbuilt contour function. It plots a group of lines in a figure, each of which represents a contour. I would like to obtain the data points that comprise each of these contours. How can I do this? So…
covertbob
  • 691
  • 2
  • 8
  • 15
1
vote
1 answer

about plot contour figure by using r code

I am a green-hand on R code. Now I meet some trouble in plotting contour figure by using R code. I have checked help(filled.contour) which tells that if you want to plot the contour, x,y should be both in ascending order. Actually, I receive the…
DavidBear
  • 35
  • 7
1
vote
1 answer

how to find shapes that are slightly elongated oval / rectangle with curved corners / sometimes sector of a circle?

how to recognise a zebra crossing from top view using opencv? in my previous question the problem is to find the curved zebra crossing using opencv. now I thought that the following way would be much easier way to detect it, (i) canny it (ii) …
1
vote
0 answers

Matlab contour plot in 3d

I have an array which include [x y z F]. I want to plot a contour which depicts every point (x,y,z) addressed with a given property F. F may be energy or something else. How do I plot an isosurface contour with different f in the same figure? I have…
1
vote
0 answers

how to draw Contour chart with jzy3d using x[] ,y[], z[]

Is it possible to draw filled contour with arrays of x[],y[],z[] with specific cordinates using jzy3d library ?
user1571715
  • 19
  • 1
  • 5
1
vote
0 answers

Output of OpenCV connected components

I wanted to reproduce the example about connected components found here (the code is no longer online and I wanted to use the C++ API). I have used the following call to findCountours: findContours(img, contours, hierarchy,…
Mathieu Dubois
  • 1,054
  • 3
  • 14
  • 22
1
vote
1 answer

Plot Zero Value on Contour Plot in MATLAB

I'm plotting z values, 0 to 10, on a contour plot. When I include data 1 or greater, I obtain a contour plot. Like the following: longitude = [80 82 95] latitude = [30 32 35] temp = [1 4 6; 1 2 7; 3 5 7] contourf(longitude,latitude,temp) Now, I…
Minimalist
  • 963
  • 12
  • 34
1
vote
1 answer

Generate contours from image

In Matlab, there is a function "contour" (Matlab contour). If I use this for my Image, I got what I want. But my goal is to implement such a function to my image editor myself. I read the Matlab's "documentation" for "contour" function and based on…
Martin Perry
  • 9,232
  • 8
  • 46
  • 114
1 2 3
99
100