Geometric morphometrics operations in python
Project description
Morphops implements common operations and algorithms for geometric morphometrics, in python 3.
Dependencies
numpy
Installation
pip install morphops
Usage
import morphops as mops
# Create 3 landmark sets, each having 5 landmarks in 2 dimensions.
A = [[0,0],[2,0],[2,2],[1,3],[0,2]]
B = [[0.1,-0.1],[2,0],[2.3,1.8],[1,3],[0.4,2]]
C = [[-0.1,-0.1],[2.1,0],[2,1.8],[0.9,3.1],[-0.4,2.1]]
# Perform Generalized Procrustes alignment to align A, B, C.
# :func:`gpa` is in the procrustes module.
res = mops.gpa([A,B,C])
# res['X0_ald'] contains the aligned A, B, C.
# res['X0_mu'] contains the mean of the aligned A, B, C.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
morphops-0.1.2.post0.tar.gz
(12.0 kB
view hashes)
Built Distribution
Close
Hashes for morphops-0.1.2.post0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b1047150c85c3388bbbfdcd58950f44b55e592b1c89ba44b2152f546a511940 |
|
MD5 | e7d9211fc33db0b4d57b4f297e55f930 |
|
BLAKE2b-256 | 2c62e46c405e1399010e9f565739d8959dd723a2620c355e7f18b1d1be5c54d7 |