[SciPy-User] Obtaining constant contours

Zachary Pincus zachary.pincus@yale....
Fri Nov 5 08:53:25 CDT 2010


>> I've got a C extension that does "marching squares" on 2D raster data
>> to get iso-contour lines out (to sub-pixel resolution via linear
>> interpolation). It's pretty fast, if this is something you're going  
>> to
>> be doing a lot.
>>
>> I'll send it along if desired...
>
> Yes, that would be great!


Attached. It's from a GPL'd project I did as part of my thesis; let me  
know if you need me to relicense.

You'll need to evaluate your function on a 2D grid and pass the grid  
to the contour-finder...

Zach


-------------- next part --------------
A non-text attachment was scrubbed...
Name: find_contours.zip
Type: application/zip
Size: 6210 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/scipy-user/attachments/20101105/f2c5291b/attachment-0001.zip 
-------------- next part --------------



More information about the SciPy-User mailing list