More Marching Squares Qs
|
11-16-2014, 05:36 PM
Post: #1
|
|||
|
|||
More Marching Squares Qs
So, I was wondering exactly how the example figure 5 was generated given that
Quote:you should isocontour on the original data and then scale up the position of the isocontours appropriately. When I do this, I get just square shaped outlines of the original data. Which in my mind somewhat makes sense, since the original data is at such a low resolution. However, when I scale the original data using bi-linear interpolation and perform marching squares on it I get something closer to figure 5. Are we supposed to perform bi-linear interpolation on the original contours returned by the marching squares algorithim to get the proper results? Or are we supposed to have jagged results returned? Illustration of the problem: http://sta.sh/01zj4874qn9z |
|||
11-18-2014, 09:54 AM
Post: #2
|
|||
|
|||
RE: More Marching Squares Qs
You should run marching squares on the original data, and scale those coordinates up (see this thread). Yes, we want to see jagged results.
|
|||
11-20-2014, 10:26 AM
Post: #3
|
|||
|
|||
RE: More Marching Squares Qs
The isocontours should be jagged (like in the example), but it looks like you are shading the values on one side of the isovalue instead of drawing the lines. The lines should end up almost exactly like the lines in the example image.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)