All Projects → permfl → dictlearn

permfl / dictlearn

Licence: other
Dictionary Learning for image processing

Programming Languages

python
139335 projects - #7 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to dictlearn

ksvd reg
Regularized K-SVD Algorithm
Stars: ✭ 29 (+26.09%)
Mutual labels:  signal-processing, sparse-coding, dictionary-learning
sparselandtools
✨ A Python package for sparse representations and dictionary learning, including matching pursuit, K-SVD and applications.
Stars: ✭ 55 (+139.13%)
Mutual labels:  sparse-coding, dictionary-learning
gproshan
geometry processing and shape analysis framework
Stars: ✭ 48 (+108.7%)
Mutual labels:  sparse-coding, dictionary-learning
MITK-Diffusion
MITK Diffusion - Official part of the Medical Imaging Interaction Toolkit
Stars: ✭ 47 (+104.35%)
Mutual labels:  segmentation, denoising
python-meegkit
🔧🧠 MEEGkit: MEG & EEG processing toolkit in Python 🧠🔧
Stars: ✭ 99 (+330.43%)
Mutual labels:  signal-processing, denoising
ClassifierToolbox
A MATLAB toolbox for classifier: Version 1.0.7
Stars: ✭ 72 (+213.04%)
Mutual labels:  sparse-coding, dictionary-learning
NeuTu
Software package for neuron reconstruction and visualization
Stars: ✭ 34 (+47.83%)
Mutual labels:  segmentation
imgcrop
Simple image augmentation library focusing on random geometric cropping
Stars: ✭ 27 (+17.39%)
Mutual labels:  segmentation
SemanticSegmentation-Libtorch
Libtorch Examples
Stars: ✭ 38 (+65.22%)
Mutual labels:  segmentation
Linear-Attention-Mechanism
Attention mechanism
Stars: ✭ 27 (+17.39%)
Mutual labels:  segmentation
U-Time
U-Time: A Fully Convolutional Network for Time Series Segmentation
Stars: ✭ 156 (+578.26%)
Mutual labels:  segmentation
geocoding
地理编码技术,提供地址标准化和相似度计算。
Stars: ✭ 148 (+543.48%)
Mutual labels:  segmentation
Chinese-automatic-speech-recognition
Chinese speech recognition
Stars: ✭ 147 (+539.13%)
Mutual labels:  signal-processing
Cough-signal-processing
Different methods and techniques for features extraction from audio
Stars: ✭ 42 (+82.61%)
Mutual labels:  signal-processing
fingerprint denoising
U-Net for fingerprint denoising
Stars: ✭ 19 (-17.39%)
Mutual labels:  denoising
ETCI-2021-Competition-on-Flood-Detection
Experiments on Flood Segmentation on Sentinel-1 SAR Imagery with Cyclical Pseudo Labeling and Noisy Student Training
Stars: ✭ 102 (+343.48%)
Mutual labels:  segmentation
CCWT
Complex Continuous Wavelet Transform
Stars: ✭ 136 (+491.3%)
Mutual labels:  signal-processing
brain-monitor
A terminal app written in Node.js to monitor brain signals in real-time
Stars: ✭ 119 (+417.39%)
Mutual labels:  signal-processing
medSeg
Medical Image Segmentation Toolkit based on PaddlePaddle - 基于paddle的医学影像分割框架
Stars: ✭ 88 (+282.61%)
Mutual labels:  segmentation
segDGM CNN
Segment Deep Gray Matter on QSM images using 3D CNN
Stars: ✭ 16 (-30.43%)
Mutual labels:  segmentation

Build Status Documentation Status

Supported Python Versions

Supported python versions are: 2.7, 3.5 and 3.6. It should also work with python 3.7, however that is not tested

Install Linux

$ pip install -r requirements.txt
$ python setup.py install

Install Mac

This package depends in libomp which is not installed by default. If you see the following error, libomp has to be installed.

$ python setup.py install
Installing dictlearn...
running develop
running egg_info
writing dictlearn.egg-info/PKG-INFO
writing dependency_links to dictlearn.egg-info/dependency_links.txt
writing requirements to dictlearn.egg-info/requires.txt
writing top-level names to dictlearn.egg-info/top_level.txt
reading manifest file 'dictlearn.egg-info/SOURCES.txt'
writing manifest file 'dictlearn.egg-info/SOURCES.txt'
running build_ext
building 'dictlearn._dictlearn._dictlearn' extension
.
.
.
clang: error: unsupported option '-fopenmp'
error: command 'gcc' failed with exit status 1

Install libomp with homebrew:

$ brew install libomp

and run python setup.py install again.

Install Windows

Using anaconda: $ conda install --file requirements.txt

Building the cython extensions are probably easier using anaconda.

If cython build crashes, install Visual Studio Build Tools. For python 3 you need:

http://landinghub.visualstudio.com/visual-cpp-build-tools

and for python 2

https://www.microsoft.com/en-us/download/details.aspx?id=44266

VTK and ITK

If you need to read/write VTK files you have to install VTK. Everything that requires VTK or ITK are located in dictlearn/vtk.py and scripts/. The rest of the code can run without having VTK or ITK installed.

Denoise (Gray scale images only)

Simple denoising using 20 training iterations with 8x8 image patches.

import matplotlib.pyplot as plt
import dictlearn as dl

denoise = dl.Denoise('noisy_image.png')
denoised_image = denoise.train().denoise()
plt.imshow(denoised_image)
plt.show()

Inpainting

import matplotlib.pyplot as plt
import dictlearn as dl

inpainter = dl.Inpaint('image.png', 'mask.png')
inpainted_image = inpainter.train().inpaint()

plt.subplot(121)
plt.imshow(inpainter.patches.image)
plt.title('Original')

plt.subplot(122)
plt.imshow(inpainted_image)
plt.title('Inpainted')

plt.show()

Tests

Run tests with

$ pytest tests

from root directory

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].