All Projects → AliMorty → Markov-Random-Field-Project

AliMorty / Markov-Random-Field-Project

Licence: other
This project has two parts. In part one, we use markov random field to denoise an image. In Part two, we use similar model for image segmentation.

Programming Languages

Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to Markov-Random-Field-Project

Solt
Streaming over lightweight data transformations
Stars: ✭ 249 (+156.7%)
Mutual labels:  image-segmentation
RGBD-semantic-segmentation
A paper list of RGBD semantic segmentation (processing)
Stars: ✭ 264 (+172.16%)
Mutual labels:  image-segmentation
CNN-DICOM-Segmentation
DICOM Image Segmentation with CNNs in Tensorflow
Stars: ✭ 87 (-10.31%)
Mutual labels:  image-segmentation
ResUNetPlusPlus-with-CRF-and-TTA
ResUNet++, CRF, and TTA for segmentation of medical images (IEEE JBIHI)
Stars: ✭ 98 (+1.03%)
Mutual labels:  image-segmentation
K-Net
[NeurIPS2021] Code Release of K-Net: Towards Unified Image Segmentation
Stars: ✭ 434 (+347.42%)
Mutual labels:  image-segmentation
findpeaks
The detection of peaks and valleys in a 1d-vector or 2d-array (image)
Stars: ✭ 121 (+24.74%)
Mutual labels:  denoising-images
Catalyst
Accelerated deep learning R&D
Stars: ✭ 2,804 (+2790.72%)
Mutual labels:  image-segmentation
fiap-ml-visao-computacional
Repositório dos exemplos e desafios utilizados na disciplina de Visão Computacional do curso de MBA Machine Learning da FIAP
Stars: ✭ 33 (-65.98%)
Mutual labels:  image-segmentation
lung-segmentation
Lung segmentation for chest X-Ray images
Stars: ✭ 74 (-23.71%)
Mutual labels:  image-segmentation
Deep-One-Shot-Logo-Retrieval
A Deep One-Shot Network for Query-based Logo Retrieval [Pattern Recognition 2019, Elsevier]
Stars: ✭ 58 (-40.21%)
Mutual labels:  image-segmentation
Deeplab-pytorch
Deeplab for semantic segmentation tasks
Stars: ✭ 61 (-37.11%)
Mutual labels:  image-segmentation
CGMM
Official Repository of "Contextual Graph Markov Model" (ICML 2018 - JMLR 2020)
Stars: ✭ 35 (-63.92%)
Mutual labels:  probabilistic-graphical-models
sharpmask
TensorFlow implementation of DeepMask and SharpMask
Stars: ✭ 31 (-68.04%)
Mutual labels:  image-segmentation
Pottslab
Unsupervised multilabel image segmentation (color/gray/multichannel) based on the Potts model (aka piecewise constant Mumford-Shah model)
Stars: ✭ 97 (+0%)
Mutual labels:  image-segmentation
image-segmentation-auto-labels
A service to auto-generate masks for image segmentation
Stars: ✭ 22 (-77.32%)
Mutual labels:  image-segmentation
Deep Unet For Satellite Image Segmentation
Satellite Imagery Feature Detection with SpaceNet dataset using deep UNet
Stars: ✭ 227 (+134.02%)
Mutual labels:  image-segmentation
ImageEnhanceViaFusion
It is a Java implementation of underwater images and videos enhancement by fusion
Stars: ✭ 58 (-40.21%)
Mutual labels:  denoising-images
segRetino
An implementation of the research paper "Retina Blood Vessel Segmentation Using A U-Net Based Convolutional Neural Network"
Stars: ✭ 23 (-76.29%)
Mutual labels:  image-segmentation
Video-Stabilization-and-image-mosaicing
video stabilization: stabilize the videos which is taken from wavering camera. Image mosaicing: stitches multiple, overlapping snapshot images of a video together in order to produce one large image.
Stars: ✭ 16 (-83.51%)
Mutual labels:  image-segmentation
MATBOX Microstructure analysis toolbox
MATBOX is an open-source MATLAB toolbox dedicated to microstructure analsyis of porous/heterogeneous materials
Stars: ✭ 27 (-72.16%)
Mutual labels:  image-segmentation

Markov Random Field For Image Segmentation and Denoising

This project has two parts. In part one, we use markov random field to denoise an image. In Part two, we use similar model for image segmentation.

For a brief read me, click on Brief Read me
For checking the code, click on Codes

Update As some people asked me some questions, I felt it might be helpful to add some notes here:

The reference that I have used can be found here. I have also used the PGMs book from Daphne Koller and Nir Friedman
The potential function is equivalent to log(Probability(x)) for any particular image x. We want to find x that maximizes this probability. This image x would be our prediction. We do search for this x using Simulated annealing.

Markov Random Field Models provide a simple and effective way to model the spatial dependencies in image pixels.
So we useed them to model the connection between two neighbour pixels.
In our problem we have to define an energy function on hidden states corresponding to true values of each pixels, then we minimize this function to obtain the best prediction.
Our energy function is defined as below:

formula

Denoising

a_complete_set_for_part_1(arr, max_iter=1e7, var=1e4, betha=1e4)

png

a_complete_set_for_part_1_some_pixels_known(arr,  known_index, max_iter=1e6, var=1e4, betha=bta)

png

Image Segmentation

In this part, we used Markov Random Field for image segmentation.
We used different image color space:

  • Gray Scale
  • HSV
  • RGB Format

Gray Scale

a_complete_set_for_part_2(arr,class_info, max_iter=1e7, betha=1e6)

png

HSV color space

Now we want to use HSV color space for training our data.

a_complete_set_for_part_2(arr_h,class_info, max_iter=1e6, betha=1e6)

png

RGB color space

In this part, we used RGB color format in training since there is some information that can be captured by pixels colors.
We used RGB values in potential function.

a_complete_set_for_part_2_3_color(max_iter=1e6, betha=1e6)

png

a_complete_set_for_part_2_3_color(max_iter=1e6, betha=1e6,
                                 schedule=linear_multiplicative_cooling_schedule, temprature_function_constant=0.5)

png

Conclusion

Grayscale image format didn't have sufficient information for CRF models in this task.
The value H in HSV image format had better information for segmentation using CRF models. And the result was better.
The RGB format also had good information for segmenting the image. Because these three segments have different colors. So if a CRF model considers colors of the image for classification, then the result is going to be better compared to Grayscale images.

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].