Hello Maddy,
I'd look into GDAL and/or Grass, since to do such area and perimeter
calculations in real world units you'll have more success working with
the data using software that understands coordinate systems.
Both GDAL and Grass have possibilities for scripting in python.
If you can figure out how to do feature-based summaries with pure
python and PIL, I'd be interested to hear about your approach.
Dane
On Nov 28, 2008, at 8:05 AM, Mandar Sarlashkar wrote:
Dear all,
I am planning to use PIL in my assignment.
One of the tasks is to calculate index such as 'Patch Density' for a
classified Land-use Land Cover Image.
I am not getting how to handle different class patches in an image.
How can I retrieve information for each patch such as area and
perimeter?
I can use FRAGSTAS for getting such indices but a python script
or guidance how it can be done using python and PIL will be more
helpful.
Thanking you for your time and consideration in advance.
Regards,
Maddy
What's on the ramp today could be on the streets tomorrow. Keep up
with trends on MSN Lifestyle Try it!
_______________________________________________
Image-SIG maillist - Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig
_______________________________________________
Image-SIG maillist - Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig