Skip to main content

Line integral convolution for numpy arrays

Project description

https://img.shields.io/pypi/v/lic?style=flat-square:alt:PyPI https://img.shields.io/pypi/l/lic?style=flat-square:alt:PyPI-License https://img.shields.io/pypi/pyversions/lic?style=flat-square:alt:PyPI-PythonVersion https://img.shields.io/gitlab/pipeline/szs/lic?style=flat-square:alt:Gitlabpipelinestatus https://gitlab.com/szs/lic/badges/master/coverage.svg?style=flat-square:alt:Coverage

⎣⫯🤇: Line Integral Convolution for numpy Arrays

This package provides line integral convolution (lic) algorithms to Python.

There are functions which can be imported and are highly configurable for the power user. Moreover, there is a command line tool to generate lic images without having to code a single line.

Installation

The installation is straight forward. You can install the package via pip, pipenv, poetry and alike or by downloading the source from the gitlab repository.

From gitlab.com

To get the latest features or contribute to the development, you can clone the whole project using git:

git clone https://gitlab.com/szs/lic.git

Now you can, for instance, copy lic.py over to your project and import it directly or use it as a command line tool.

Usage

You can import lic in your program and use the functions directly or use the command line tool.

Importing the module

Once the package is installed where Python can find it, you can use the function lic directly.

import lic
import matplotlib.pyplot as plt

# ... get x and y arrays from somewhere ...

lic_result = lic.lic(x, y, length=30)

plt.imshow(lic_result, origin='lower', cmap='gray')
plt.show()

Find out more about the options by reading the source documentation:

pydoc lic.lic

You can also control the seed, i.e., the underlying texture for the lic:

pydoc lic.gen_seed

You can run the example from the root folder to see the result:

PYTHONPATH="." python3 examples/ex1.py

Command Line Tool

You will need npy data files (saved using numpy.save) to use lic from the command line:

lic data_x.npy data_y.npy -v -l 30 -c

See lic --help for a full list of options.

How to Contribute

If you find a bug, want to propose a feature or need help getting this package to work with your data on your system, please don’t hesitate to file an issue or write an email. Merge requests are also much appreciated!

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lic-0.2.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lic-0.2.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file lic-0.2.1.tar.gz.

File metadata

  • Download URL: lic-0.2.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.7.5 Linux/5.3.0-55-generic

File hashes

Hashes for lic-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cd0ed7e5599e5fe0ad8dddf1e7522d0400a4a3441111c81232b87c623f5fff8a
MD5 c1ee18cd5e2a44bf2aeda3bea856df90
BLAKE2b-256 eab179465a13fc0fd9d20bcbe2c8e55394c7d02620c74c2f577666841f357106

See more details on using hashes here.

File details

Details for the file lic-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: lic-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.7.5 Linux/5.3.0-55-generic

File hashes

Hashes for lic-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ab17d8945992e99bfa72d5488be4cc5a46a2ab628142682ff0fe1b87673bf06
MD5 dd39d8c9ee4b4e118fd67d764b696909
BLAKE2b-256 420fb1c8f2db17fc0f873ec05fff4871a45fec53ac7f3a71b39cb89c29cd54f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page