[SciPy-user] circumference in raster image

Robert Cimrman cimrman3 at ntc.zcu.cz
Wed Jul 8 11:35:51 EDT 2009


Robert Cimrman wrote:
> Hi Zach!
> 
> Zachary Pincus wrote:
>> Hi all,
>>
>> Attached is find_contours, an extension module that finds all contours 
>> in a 2D array at a specified iso-value. The contour position is linearly 
>> interpolated between pixels. Let me know if you have any questions, etc. 
>> (Looking over the code, I'm surprised how well I documented and 
>> commented it... lucky break for anyone who wants to use or modify it, I 
>> guess.) It's GPL because it comes from a larger GPL'd project of mine, 
>> but just ask me and I'll send it under a different license.
> 
> Thank you very much, I will try your code. This is the way I thought I 
> might try (interpolating by a smooth function/polynomial), so it's cool 
> I do not have to dive into it :-)

ok, I have tried find_contours() - it seems very suitable for my purposes!

r.



More information about the SciPy-User mailing list