Learning Image Processing with OpenCV
Author:Gloria Bueno Garcia
Language: eng
Format: epub
Publisher: Packt Publishing
Note
More information about the nonlocal means and the TVL1 denoising algorithms can be found at http://www.ipol.im/pub/art/2011/bcm_nlm and http://znah.net/rof-and-tv-l1-denoising-with-primal-dual-algorithm.html, respectively.
OpenCV provides four functions to denoise color and grayscale images following the nonlocal means approach. For the TVL1 model, one function is provided. These functions are:
void fastNlMeansDenoising(InputArray src, OutputArray dst, float h = 3, int templateWindowSize = 7, int searchWindowSize = 21): This denoises a single grayscale image loaded in src. The templateWindowSize and searchWindowSize parameters are the sizes in pixels of the template patch that is used to compute weights and the window that is used to compute the weighted average for the given pixel. These should be odd and their recommended values are 7 and 21 pixels, respectively. The h parameter regulates the effect of the algorithm. Larger h values remove more noise defects but with the drawback of removing more image details. The output is stored in dst.
void fastNlMeansDenoisingColored(InputArray src, OutputArray dst, float h = 3, float hForColorComponents = 3, int templateWindowSize = 7, int searchWindowSize = 21): This is a modification of the previous function for colored images. It converts the src image to the CIELAB color space and then separately denoises the L and AB components with the fastNlMeansDenoising function.
void fastNlMeansDenoisingMulti(InputArrayOfArrays srcImgs, OutputArray dst, int imgToDenoiseIndex, int temporalWindowSize, float h = 3, int templateWindowSize = 7, int searchWindowSize = 21): This uses an image sequence to obtain a denoised image. Two more parameters are needed in this case: imgToDenoiseIndex and temporalWindowSize. The value of imgToDenoiseIndex is the target image index in srcImgs to be denoised. Finally, temporalWindowSize is used to establish the number of surrounding images to be used for denoising. This should be odd.
void fastNlMeansDenoisingColoredMulti(InputArrayOfArrays srcImgs, OutputArray dst, int imgToDenoiseIndex, int temporalWindowSize, float h = 3, float hForColorComponents = 3, int templateWindowSize = 7, int searchWindowSize = 21): This is based on the fastNlMeansDenoisingColored and fastNlMeansDenoisingMulti functions. The parameters are explained in the rest of the functions.
void denoise_TVL1(const std::vector<Mat>& observations, Mat& result, double lambda, int niters): This obtains a denoised image in result from one or more noisy images stored in observations. The lambda and niters parameters control the strength and the number of iterations of the algorithm.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Computer Vision & Pattern Recognition | Expert Systems |
Intelligence & Semantics | Machine Theory |
Natural Language Processing | Neural Networks |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8292)
Test-Driven Development with Java by Alan Mellor(6650)
Data Augmentation with Python by Duc Haba(6557)
Principles of Data Fabric by Sonia Mezzetta(6317)
Learn Blender Simulations the Right Way by Stephen Pearson(6206)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6079)
Hadoop in Practice by Alex Holmes(5958)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5806)
RPA Solution Architect's Handbook by Sachin Sahgal(5470)
Big Data Analysis with Python by Ivan Marin(5325)
The Infinite Retina by Robert Scoble Irena Cronin(5171)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5139)
Pretrain Vision and Large Language Models in Python by Emily Webber(4287)
Infrastructure as Code for Beginners by Russ McKendrick(4047)
Functional Programming in JavaScript by Mantyla Dan(4037)
The Age of Surveillance Capitalism by Shoshana Zuboff(3943)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3758)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3564)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3538)
