No project description provided
Project description
Copyright (c) 2019, Justus Schock All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Description: # ShapeData
[![PyPI version](https://badge.fury.io/py/shapedata.svg)](https://badge.fury.io/py/shapedata) [![Build Status](https://travis-ci.com/justusschock/shapedata.svg?token=GsT2RFaJJMxpqLAN3xuh&branch=master)](https://travis-ci.com/justusschock/shapedata) [![Documentation Status](https://readthedocs.org/projects/shapedata/badge/?version=master)](https://shapedata.readthedocs.io/en/master/?badge=master) [![codecov](https://codecov.io/gh/justusschock/shapedata/branch/master/graph/badge.svg?token=PeQndVRdEQ)](https://codecov.io/gh/justusschock/shapedata) ![LICENSE](https://img.shields.io/github/license/justusschock/shapedata.svg)
This repository contains image classes to perform transformations on images with landmarks (similar to [menpo](https://github.com/menpo/menpo) but with much less dependencies). It also provides some basic Datasets for [delira](https://github.com/justusschock/delira)
## Installation This package can be installed via pip install shapedata
## Basic Usage To load a single image with landmarks you can simply do
`python import shapedata img = shapedata.SingleShapeSingleImage2D.from_files("./example_files/lenna.png") `
and to view this image do `python from matplotlib import pyplot as plt img.view(view_landmarks=True) plt.show() `
To augment the image you can use img.transform() to transform the image with the origin as transformation base or img.transform_about_centre() to use the images’s center as transformation base. Transformations as img.translate(), img.rotate(), img.rescale() or img.resize() are also implemented and will fall back on img.transform() or img.transform_about_centre()
To access the image itself you can do img.img and accessing the landmarks works with img.lmk for instances of SingleShapeSingleImage For further usage have a look at the datasets and docstrings.
Platform: UNKNOWN Classifier: Development Status :: 4 - Beta Classifier: Intended Audience :: Developers Classifier: Intended Audience :: Education Classifier: Intended Audience :: Science/Research Classifier: Natural Language :: English Classifier: Programming Language :: Python :: 3 Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
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
Built Distribution
File details
Details for the file shapedata-0.2.0.tar.gz
.
File metadata
- Download URL: shapedata-0.2.0.tar.gz
- Upload date:
- Size: 496.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 455bb5afca334fc446e017c09bb090fec0bf5e31ddc28897772edf919d781429 |
|
MD5 | 9591b77cd48a1b4370dbf09cd612c6bf |
|
BLAKE2b-256 | 37b0726cb548a9f4f7bd760a480196695da27f8521d9adb8d490197727140d81 |
File details
Details for the file shapedata-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: shapedata-0.2.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b78cd537704d0f7992e5195aa7693b4f9d77fd6ae43f94983c3f59b8cf962b36 |
|
MD5 | 24e6dfc3f1843af3522b93876b97d9c1 |
|
BLAKE2b-256 | 802f3ec6950056e19c52718d2d32151b6de9278a361e229ec1dfac7dca32bd8b |