当前位置:网站首页>[image fusion] multi focus image fusion in DCT domain based on MATLAB [including Matlab source code, 1973]
[image fusion] multi focus image fusion in DCT domain based on MATLAB [including Matlab source code, 1973]
2022-07-18 11:56:00 【Poseidon light】
One 、 be based on DCT Introduction of image fusion algorithm based on transform
In the process of image fusion , The most important thing is how to extract low-frequency coefficients and fusion criteria of low-frequency coefficients . be based on DCT The principle of the transformed image fusion algorithm is shown in the figure 2 Shown .
chart 2 DCT Principle of fusion algorithm
The algorithm steps are as follows .
step 1 Accurately register the source image to be fused .
step 2 The size of each piece participating in the fusion is M×N The source images of are divided into m×m Small pieces .
step 3 For steps 2 All the small pieces obtained in DCT Transformation .
step 4 Yes DCT The transformed blocks extract low-frequency coefficients and high-frequency coefficients respectively , The low and high frequency coefficients at the corresponding positions are fused according to the low and high frequency fusion criteria .
step 5 For fused DCT The coefficient is calculated IDCT, Finally, we get the fused image .
2.1 Low frequency coefficient fusion
The most important part of information for vision , All focus on the low frequency of the image . Low frequencies represent slow changes between image pixels , That is, the image frame part [11] . In order to maintain the visibility of the image , Keep the low-frequency part of the image , The change of low-frequency part may cause great changes in the image . be based on DCT The low-frequency coefficients of the transformed fused image are averaged , Suppose there is p Multiple exposure images , Can be defined as 
In style Gk(i,j) Is the source image via DCT Low frequency coefficient extracted after transformation ;G(i,j) Is the low-frequency coefficient after fusion ;wk It's the weighting factor .
2.2 High frequency coefficient fusion
The high frequency coefficient corresponds to the detail information of the image , Features such as edges . The fusion rules of high-frequency coefficients are as follows .
(1) The segmented image is DCT After transformation , Extract its high-frequency coefficient .
Calculate the high-frequency coefficients respectively D(i,j) In pixels (i,j) Centred (2k+1)×(2k+1) The expression of image standard deviation in the neighborhood is 

(2) remember p The regional standard deviations of a high-frequency coefficient of multiple exposure images are [C1(i,j),C2(i,j),…,Cp(i,j)], Then the weight coefficient corresponding to the extracted high-frequency coefficient is 
(3) By the type (7) We can draw p Weight of multiple exposure images , Compare them , High frequency coefficient after fusion D(i,j) Is the high frequency coefficient corresponding to the maximum weight coefficient . If 
that 
Two 、 Partial source code
clc
clear
close all
%Select First Image
disp('Please Select First Image:')
[filename, pathname]= uigetfile({
'*.jpg;*.png;*.tif'},'Select First Image');
path=fullfile(pathname, filename);
im1=imread(path);
disp('Great! First Image is selected')
%Select Second Image
disp('Please Select Second Image:')
[filename, pathname]= uigetfile({
'*.jpg;*.png;*.tif'},'Select Second Image');
path=fullfile(pathname, filename);
im2=imread(path);
disp('Great! Second Image is selected')
if size(im1,3) == 3 % Check if the images are grayscale
im1 = rgb2gray(im1);
end
if size(im2,3) == 3
im2 = rgb2gray(im2);
end
if size(im1) ~= size(im2) % Check if the input images are of the same size
error('Size of the source images must be the same!')
end
3、 ... and 、 Running results

Four 、matlab Edition and references
1 matlab edition
2014a
2 reference
[1] Liu Weihua , Mayanghua , Liu Ying . be based on DCT Transform multi exposure image fusion method [J]. Journal of Xi'an University of Posts and telecommunications . 2016,21(06)
3 remarks
This part of the introduction is taken from the Internet , For reference only , If infringement , Contact deletion
边栏推荐
- 二叉树相关的习题讲解
- JS12day(构造函数创建类对象,prototype, proto,原型链,forEach,filter,some,Oblect.keys(),Object.defineProperty())
- How to write each part of the thesis well?
- 【ES实战】Spark写入ES支持
- 解决TS中“Cannot find module ‘path‘ or its corresponding type declarations.”
- 常用音频特征:梅尔频谱(melspectrogram)、幅度谱(短时傅里叶变换谱/STFT)、梅尔倒谱(MFCC)
- Wireless communication safety operation 4
- The last column of DataGridView is automatically extended to the rest
- 移动机器人学(二)姿态解算
- Redis五种常用数据类型有哪些?对应的数据存储空间又是怎样的?带你从零开始学习
猜你喜欢

How to build modern search engine system, intelligent question answering system and intelligent recommendation system based on knowledge map technology?

普乐蛙4d5d动感影院|VR太空旅行设备|VR带你遨游太空

mysql报错 1142 - SELECT command denied to user ‘dev‘@‘localhost‘ for table ‘user‘ (已解决)

每日学习Redis——拿捏Redis中的通用指令(键和数据库通用指令)

Camera 画质调试,学习资料分享

重磅:Mobileye官宣推迟IPO,营收增速放缓、市场竞争加剧

Wireless communication safety operation 3

限制ASML给中国供应光刻机?其实它已经离不开中国市场了

【LSTM回归预测】基于matlab TPA-LSTM时间注意力机制长短期记忆神经网络回归预测(多输入单输出)【含Matlab源码 1984期】

读书笔记:程序员的自我修养---第一章
随机推荐
采取哪些行之有效的措施可以提高讨论研究问题的效率?
二叉树遍历
MySQL JSON field query
Which machine learning model is suitable for different evaluation methods?
Wireless communication safety operation 2
磁盘上的无刷电机改造
WinForm + C GDI + programming to realize Photoshop, illustrator similar drawing toolbox
【pytorch】线性神经网络
What effective measures can be taken to improve the efficiency of discussing research issues?
uboot 增加硬件看门狗
Professional qualities of network security practitioners
C语言力扣第206题之反转链表。双指针法,迭代递归(三种方法)。图文保姆教程
解决 : ReferenceError: PubSub is not defined
screenWidth、clientWidth、offsetWidth、 scrollWidth的区别
DataTime module, OS module, Sys module, JSON module, JSON module operation of time module
迁移学习模型训练一
一道极限题目
celery包结构、celery任务、双写一致性
读书笔记:程序员的自我修养---第一章
mysql报错 1142 - SELECT command denied to user ‘dev‘@‘localhost‘ for table ‘user‘ (已解决)