FringeLib is a Python library designed for extracting the main context from holographic images that require amplitude or phase correction. This library provides functionalities to enhance the quality and interpretability of such images, catering to both amplitude and phase correction needs.
- frng_a: Function to extract main context from images requiring amplitude correction. (both the functions can be called from FringeLib.pyc)
- frng_p: Function to extract main context from images requiring phase correction.
- Synthetic Datasets: Includes two synthetic datasets:
- Amplitude Dataset: 100 images requiring amplitude correction.
- Phase Dataset: 100 images requiring phase correction.
pip install numpy
pip install matplotlib
pip install opencv-python
import numpy as np
import matplotlib.pyplot as plt
import cv2
You can utilize FringeLib using the repo:
!git clone https://github.com/PavanMohanN/fringe_pack.git
import FringeLib
result_a = FringeLib.frng_a(img)
plt.imshow(result_a,cmap='gray')
result_p = FringeLib.frng_p(img)
plt.imshow(result_p,cmap='gray')
[whl_implementation.ipynb illustrates the utilization of the executable with os, numpy, matplotlib and cv2 as dependencies]
FringeLib/
├── dist/
│ └── fringe_pack-1.0-py3-none-any.whl # Distribution package (example)
└── src/
└── fringe_pack/
├── FringeLib.pyc # Package
└── fringe_pack.egg-info/ # Package metadata
├── dependency_links.txt
├── PKG-INFO
├── requires.txt
├── SOURCES.txt
└── top_level.txt
dist/: Contains distribution packages (whl files) generated for deployment.
src/: Directory containing the source code for the project.
fringe_pack/: Package directory where your library's modules and initialization reside.
fringe_pack.egg-info/: Directory containing metadata generated by packaging tools (setuptools, wheel). It includes dependency information and other package details.
Created in Jul 2024
@author: Pavan Mohan Neelamraju
Affiliation: Indian Institute of Technology Madras
Email: npavanmohan3@gmail.com
Personal Website 🔴🔵: [pavanmohan.netlify.app]