Skip to main content

A wrapper for Ben's LBP bio pipeline

Project description

ImageTextureFinder

A project to create an easy-to-use way of finding areas of common patterns and structures within an image. Should work on any image, designed for use on any biological images including DAPI, IMC and H&E.

See sample_run.sh for details.

  • Branch baseline is the most stable. It is ready for pip packaging.
  • Branch pip is stale at the moment
  • Branch dev is unstable and for dev purposes only.

Container

Image tag is mkrooted/imbg-fastlbp. Hosted on Docker Hub (https://hub.docker.com/repository/docker/mkrooted/imbg-fastlbp/general). See https://github.com/imbg-ua/fastLBP-sandbox for details


Guides

How to build and deploy a pip package

Src: https://packaging.python.org/en/latest/tutorials/packaging-projects/

  • Add your access token to .pypirc
    # ~/.pypirc 
    [pypi]
      username = __token__
      password = pypi-TOKEN_FROM_YOUR_PYPI_SETTINGS_GOES_HERE
    
  • Ensure that your Python is 3.8 because the package targets Python 3.8 and thus requires to be build using this Python version
    python --version
    # Should show Python 3.8.something
    
  • Install prerequisites (twine and build)
    pip install --upgrade twine build
    
  • Edit project version in pyproject.toml
  • Build and upload the project
    # while in root project directory
    python -m build      # .whl and .gz output will be at ./dist directory
    python3 -m twine upload dist/*   # note that this can accidentally upload unneeded builds
    

Algorithm notes

Step 1 performs an LBP and creates histograms for each method.

Method is a combination of the following parameters:

  • image name
  • image channel
  • LBP radius
  • LBP number of points

Every method's result got saved into the separate .npy file. There is a correspondence betweeen a method and a computational job.

Step 2 collects all the results and concatenate them along the features dimension. That means that feature vector of a patch is a concatenation of all LBP codes from all channels and all LBP radii.

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

fastlbp-baseline-imbg-0.0.7.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

fastlbp_baseline_imbg-0.0.7-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

Details for the file fastlbp-baseline-imbg-0.0.7.tar.gz.

File metadata

  • Download URL: fastlbp-baseline-imbg-0.0.7.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for fastlbp-baseline-imbg-0.0.7.tar.gz
Algorithm Hash digest
SHA256 3d24ee802e4b8a7073fe7b9e9cc7fe19f2d5e1c32d1cc081733fbc204aa9ada1
MD5 d9ac11aff659a293bdfea047b95df261
BLAKE2b-256 3215e47958d53297a9a695018573a120a5552c906f4a485542915bcc1ba08a96

See more details on using hashes here.

File details

Details for the file fastlbp_baseline_imbg-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for fastlbp_baseline_imbg-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4b071860d1103d819ede07d8a4003a05274f92e7ffa1d6384bda58c5ed07e9db
MD5 53a4cdd0ab95e3b4c0388b06c5d7695e
BLAKE2b-256 437bd66ab0ab4e972b54a0629335e0a219d0a783bea9a79179aae27a2cc11bb9

See more details on using hashes here.

Supported by

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