Skip to main content

Image processing of images acquired through fibre imaging bundle, including core removal, mosaicing and super-resolution..

Project description

PyFibreBundle

PyFibreBundle is a Python package for processing images captured through optical fibre bundles.

Full documentation is available on Readthedocs and a summary of the current functionality is below.

PyFibreBundle is fast enough for live imaging as well as for offline research; frame rates of over 100 fps can be achieved on mid-level hardware, including core removal and mosaicing. The Numba just-in-time compiler is used to accelerate key portions of code (particularly triangular linear interpolation) and OpenCV is used for fast mosaicing. If the Numba package is not installed then PyFibreBundle falls back on Python interpreted code.

The package was originally developed mostly for applications in endoscopic microscopy, including fluorescence endomicroscopy and holographic endomicroscopy, but there are also potential applications in endoscopy, industrial inspection etc.

Development is led by Mike Hughes at the Applied Optics Group, School of Physics & Astronomy, University of Kent. Bug reports, contributions and pull requests are welcome. Academic collaborations are welcomed and consultancy is available for potential commercial users, get in touch

Join the mailing list to hear about releases, updates and bug fixes.

Capabilities

Core Functions

  • Supports monochrome and multi-channel (e.g. colour) images.
  • Locate bundle in image.
  • Crop image to only show bundle.
  • Mask areas outside of bundle.
  • Determine core spacing.
  • Find locations of all cores in bundle.
  • Core removal by Gaussian filtering.
  • Core removal using custom edge filtering.
  • Core removal using triangular linear interpolation following Delaunay triangulation.

Mosaicing

  • Detect image to image shift using normalised cross correlation.
  • Insert image into mosaic either using dead-leaf or alpha blending.
  • Expand or scroll mosaic when the edge of the mosaic image is reached.

Super Resolution

  • Combine multiple shifted images to improve resolution.

Read the full documentation for more details.

Getting Started

There are three ways to get PyFibreBundle:

  • Download the latest stable release from github and unzip. This will give you all the examples, tests and test data.
  • Clone the github repository using git. This will give you the latest updates but more chance of bugs.
  • Install the latest stable release using:
pip install PyFibreBundle 

The third option (using pip install) should find and install all the dependencies. For the other two options you will need to either manually check you have the requirements installed, or navigate to the PyFibreBundle folder on your machine and run:

pip install -r requirements.txt

to install the dependencies. You may wish to create a virtual environment using Conda/venv first to avoid conflicts with your existing python setup.

Note that the pip install doesn't include the examples and tests which still need to be downloaded from Github.

Once installed, you can try running the examples.

Requirements

Required Packages:

  • Numpy
  • OpenCV
  • Pillow
  • Scipy

Optional Packages:

  • Numba (for faster linear interpolation)
  • Matplotlib (to run examples and tests)

Contributions

Cheng Yong Xin, Joseph, who contributed to triangular linear interpolation; Callum McCall who contributed to the super resolution component, Petros Giataganas who developed some of the Matlab code that parts of this library were ported from.

Funding from EPSRC (Ultrathin fluorescence microscope in a needle, EP/R019274/1), Royal Society (Ultrathin Inline Holographic Microscopy) and University of Kent.

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

pyfibrebundle-1.3.5.tar.gz (39.8 kB view details)

Uploaded Source

Built Distribution

PyFibreBundle-1.3.5-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

Details for the file pyfibrebundle-1.3.5.tar.gz.

File metadata

  • Download URL: pyfibrebundle-1.3.5.tar.gz
  • Upload date:
  • Size: 39.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for pyfibrebundle-1.3.5.tar.gz
Algorithm Hash digest
SHA256 27335654b9ed037fee11222cf1799f9ee895f22f5070b8dea709109713639a0b
MD5 cad62a22501a18115250b600b980ecb2
BLAKE2b-256 95decd92dd6d815b30cd9a3e5c378852c48a50540fc8df63e1020c62643b1655

See more details on using hashes here.

File details

Details for the file PyFibreBundle-1.3.5-py3-none-any.whl.

File metadata

File hashes

Hashes for PyFibreBundle-1.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f48c8f2779f1f3209600b03b38b12ffaa98b6cdd202c42c70f50150b4546fc07
MD5 27339ec61cfacbd296833b59856fd05c
BLAKE2b-256 0843ba3097cbe369a5806af199eb394dde7c85a7cdd4e2b04289845054e603fa

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