Permalink
Newer
100644
22 lines (17 sloc)
587 Bytes
|
|
||
| 1 | # | |
| 2 | # Test program to find minimum-area bounding rectangle of a set of 2D points | |
| 3 | # | |
| 4 | # Currently implemented in Python. I will upload the Matlab version later. | |
| 5 | # | |
| 6 | # | |
| 7 | # Copyright (c) 2013, David Butterworth, University of Queensland | |
| 8 | # All rights reserved. | |
| 9 | # | |
| 10 | ||
| 11 | Installation: | |
| 12 | Download all source code from the /python directory to your local computer. | |
| 13 | ||
| 14 | Test the program: | |
| 15 | $ python ./bbox_test.py | |
| 16 | ||
| 17 | The test program includes definitions for some simple polygons. | |
| 18 | You can define your own Nx2 numpy array with your own data. | |
| 19 | ||
| 20 | Tested with Python 2.6.5 on Ubuntu 10.04.4 | |
| 21 | Results verified using Matlab |