Re: Polygon Matrices
- From: "John D'Errico" <woodchips@xxxxxxxxxxxxxxxx>
- Date: Fri, 6 Mar 2009 00:19:01 +0000 (UTC)
"Gustavo J. " <gjvergar@xxxxxxxxx> wrote in message <gopn7u$31t$1@xxxxxxxxxxxxxxxxxx>...
Sorry about that.
I used an image with a 640x480 pixel size
The X represents a matrix of all the x coordinates
The Y represents a matrix of all the y coordinates
if you put the numbers into a notepad and make the txt files, you can read them into matlab using 'read(filename.txt)
so I did the following
took the x and y values and made two txt files
xcoord.txt
ycoord.txt
Then in matlab I did:
x=read(xcoord.txt)
y=read(ycoord.txt
figure;plot(x,y)
To answer your question (if you plot the points) they show the corners of of nine polygons. They are all out of order.
Not sure if there is a way to upload files or pictures, but if you want I can give you my email address and I can send you pictures of what I am trying to do.
I read them into matlab. Copy and paste does as well
as anything else. There are 22 (x,y) pairs of points.
How do you choose to create 9 different polygons
from those 22 points in the plane?
These are 22 disconnected points, that are not even
in sequence. I see no sensible way to know that one
would expect to tile the region enclosed by exactly 9
quadrilateral polygons. 10 perhaps, but why 9?
Sorry, but there is no magic to be found here, certainly
not so to automatically create a set of 4 sided polygons.
You might choose to make one single closed polygon
out of it, perhaps using a TSP code. (Traveling Salesman)
Then triangulate the polygon using one of several
schemes. This will result in triangles though.
John
.
- Follow-Ups:
- Re: Polygon Matrices
- From: Gustavo J.
- Re: Polygon Matrices
- References:
- Polygon Matrices
- From: Gustavo J.
- Re: Polygon Matrices
- From: John D'Errico
- Re: Polygon Matrices
- From: Gustavo J.
- Re: Polygon Matrices
- From: John D'Errico
- Re: Polygon Matrices
- From: Gustavo J.
- Polygon Matrices
- Prev by Date: Replacing the diagonal of a square matrix
- Next by Date: Vectorizing cell assignments
- Previous by thread: Re: Polygon Matrices
- Next by thread: Re: Polygon Matrices
- Index(es):
Relevant Pages
|