当前位置:网站首页>[image denoising] image denoising based on mean + median + Gauss low pass + various improved wavelet transform, including Matlab source code
[image denoising] image denoising based on mean + median + Gauss low pass + various improved wavelet transform, including Matlab source code
2022-06-11 09:41:00 【Matlab Research Assistant】
1 brief introduction
The image denoising method combining mean filtering and wavelet transform is to decompose the noisy image by wavelet first , In the wavelet domain , Select an appropriate threshold to process the wavelet coefficients , Then the image signal is locally reconstructed to the first layer , Different templates are used to filter the mean value of each sub image of the first layer , Finally, the denoised image is synthesized from the low-frequency approximate image and the high-frequency detail image after mean filtering . This method is related to the global Donoho soft , Hard threshold wavelet denoising method and method Birge-Massart Soft strategy , Compared with the hard threshold wavelet denoising method , Its denoising effect is more obvious . It reduces the noise of the image while , And keep the details of the image as much as possible , And the image is smoother . Simulation results show that , This method is an effective image denoising method .
2 Part of the code
function X = wdenoise(x, measure, sorh, thr, wname, n)
% Threshold denoising function
% x Is a noisy image
% measure Indicates global or local
% sorh Represents the soft and hard threshold method
% thr Threshold value
% wname Is the name of the wavelet function
% n For the decomposition hierarchy
[C, S] = wavedec2(x, n, wname); % Wavelet decomposition of the image
switch measure
case 'gbl' % Global threshold method
dcoef = C( prod(S(1, :)) + 1 : end); % Extract the detail part coefficient
switch sorh
case 'h' % Hard threshold
dcoef = dcoef .* (abs(dcoef) > thr);
case 's' % Soft threshold
temp = abs(dcoef) - thr;
temp = (temp + abs(temp)) / 2;
dcoef = sign(dcoef) .* temp;
end
C( prod(S(1, :)) + 1 : end) = dcoef;
case 'lvd' % Local threshold method
for i = n:-1:1 % Each layer is treated separately
k = size(S,1) - i;
first = prod(S(1, :)) + ...
3 * sum(S(2:k-1, 1) .* S(2:k-1, 2)) + 1;
% The first i The starting position of the layer detail factor
last = first + 3*prod(S(k,:)) - 1; % Termination position
dcoef = C(first : last); % Detail factor
switch sorh
case 'h' % Hard threshold
dcoef = dcoef .* (abs(dcoef) > thr(i));
case 's' % Soft threshold
temp = abs(dcoef) - thr(i);
temp = (temp + abs(temp)) / 2;
dcoef = sign(dcoef) .* temp;
end
C(first:last) = dcoef;
end
end
X = waverec2(C, S, wname); % Reconstruct the image
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
- 28.
- 29.
- 30.
- 31.
- 32.
- 33.
- 34.
- 35.
- 36.
- 37.
- 38.
- 39.
- 40.
- 41.
3 Simulation results

4 reference
[1] Peng Shushu . Image denoising based on mean filter and wavelet transform [J]. Modern computers , 2019(12):6.
About bloggers : Good at intelligent optimization algorithms 、 Neural networks predict 、 signal processing 、 Cellular automata 、 The image processing 、 Path planning 、 UAV and other fields Matlab Simulation , relevant matlab Code problems can be exchanged by private letter .
Some theories cite network literature , If there is infringement, contact the blogger to delete .

边栏推荐
- PD chip ga670-10 for OTG while charging
- [scheme development] scheme of infrared thermometer
- P4147 "jade toad Palace"
- Revisiting Self-Training for Few-Shot Learning of Language Model,EMNLP2021
- How do we connect to WiFi?
- Machine learning notes - in depth Learning Skills Checklist
- Comparison and introduction of OpenCV oak cameras
- P1169 "chessboard making"
- js基础--关于DOM
- Detailed explanation of this and static
猜你喜欢

The first TOF related data set available for deep learning: deep learning for confidence information in stereo and TOF data fusion (iccv 2017)

Machine learning notes - spatial transformer network using tensorflow

Package details

Before applying data warehouse ODBC, you need to understand these problems first

Openstack explanation (XXIII) -- other configurations, database initialization and service startup of neutron

Simulation of map and set

Ecological co construction | 2021 streamnational excellent partner of the year comes out!

Thread theory

Day41 process pool and thread pool

CVPR 2021: learning continuous image representation with local implicit image function
随机推荐
How do we connect to WiFi?
远程办公最佳实践及策略
P1169 "chessboard making"
Bowen dry goods | Apache inlong uses Apache pulsar to create data warehousing
Version mismatch between installed deeply lib and the required one by the script
MySQL:Got a packet bigger than ‘max_ allowed_ packet‘ bytes
Thread theory
ArcGIS 10.9.1 geological and meteorological volume metadata processing and service publishing and calling
Control statement if switch for while while break continue
Technical practice of dolphin dispatching in kubernetes system
Monotone stack
[scheme development] sphygmomanometer scheme pressure sensor sic160
Error [detectionnetwork (1)][warning]network compiled for 6 shapes, maximum available 10, compiling for 5 S
Do you know these advantages of ERP system?
[ERP system] how much do you know about the professional and technical evaluation?
Flask (III) -- variable rules
Why is it difficult to implement informatization in manufacturing industry?
考研數學 【數列極限證明題】題型方法總結
ES6新增特性--箭头函数
关于原型及原型链