Re: contourc and length of contours
- From: "John D'Errico" <woodchips@xxxxxxxxxxxxxxxx>
- Date: Sat, 31 May 2008 19:58:01 +0000 (UTC)
"mark b." <john.doe.nospam@xxxxxxxxxxxxx> wrote in message
<g1s6ml$bl1$1@xxxxxxxxxxxxxxxxxx>...
hi,
i've got a question about 'contourc' function. do i
understand corectly that this function should compute
lenght of conturs?
i've got set of points (x,y) of contour. and i want to know
it's length. but when i use 'contourc' function i get
matrix 2xN, with values i do not understand. i read matlab
documentation but i do not understand how to callculate
this lenght.
can anyone help me with that??
kind regards
I think you misunderstand the meaning
of "length".
Contourc does not return a length, as in
a Euclidean distance. It does return the
NUMBER of points on a given polygonal
contour. Read the help for contourc.
The segments are appended end-to-end as
C = [level1 x1 x2 x3 ... level2 x2 x2 x3 ...;
pairs1 y1 y2 y3 ... pairs2 y2 y2 y3 ...]
The output array has all the information
that you need. The first column gives the
contour level for a given contour polygon,
and the NUMBER of points in that polygon.
The next few columns correspond to the
(x,y) pairs of points. Then it repeats for
each contour polygon. READ THE HELP.
It is right there.
If you want to compute the actual length
of a contour polygon, then you have all
the data at your fingertips.
John
.
- References:
- contourc and length of contours
- From: mark b.
- contourc and length of contours
- Prev by Date: Re: gscatter without legend?
- Next by Date: Re: contourc and length of contours
- Previous by thread: contourc and length of contours
- Next by thread: Re: contourc and length of contours
- Index(es):
Relevant Pages
|