Welcome to Morphops!
Morphops implements common operations and algorithms for 2d and 3d geometric morphometrics, in python 3.
Some high-level operations in the current version are
Centering, rescaling data
Rigid Rotation, Ordinary and Generalized Procrustes alignment
Thin-plate spline warping
Reading from and writing to *.dta files
Dependencies
numpy
Installation
pip install morphops
Usage Examples
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['aligned'] contains the aligned A, B, C.
# res['mean'] contains the mean of the aligned A, B, C.
# Create a Thin-plate Spline warp from A to B and warp C.
warped_C = mops.tps_warp(A, B, C)
# warped_C contains the image of the pts in C under the TPS warp.
Release files for morphops 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| morphops-0.1.9.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| morphops-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.8 kB
Release files / morphops-0.1.9.tar.gz
| Download URL | morphops-0.1.9.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f7f42837c5195748c1aca36dd66212fca4ea98c367dd59cf1a5bee6b270fd6d
|
|
BLAKE2b-256 checksum How to use checksums |
2205103e920b76ee38cddbc0c92402372d573f74b6647a78346a5ccc4d3542bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
|
Release files / morphops-0.1.9-py3-none-any.whl
| Download URL | morphops-0.1.9-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b767f06a36e01edea70f175df631348605e7eca404c0d4cce99b4208b6825246
|
|
BLAKE2b-256 checksum How to use checksums |
22146c3e7315cc6e5f8826f183396e5dcddad25e5d4d6ff833b086db26081f28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
|