当前位置:网站首页>[image detection saliency map] calculation of fish eye saliency map based on MATLAB distortion prompt [including Matlab source code 1903]
[image detection saliency map] calculation of fish eye saliency map based on MATLAB distortion prompt [including Matlab source code 1903]
2022-06-24 00:08:00 【Poseidon light】
One 、 How to get the code
How to get the code 1:
The complete code has been uploaded to my resources :【 Image detection saliency map 】 be based on matlab Distortion prompt fish eye diagram saliency diagram calculation 【 contain Matlab Source code 1903 period 】
How to get the code 2:
By subscribing to Ziji Shenguang blog Paid column , With proof of payment , Private Blogger , This code is available .
remarks :
Subscribe to Ziji Shenguang blog Paid column , Free access to 1 Copy code ( The period of validity From the Subscription Date , Valid for three days );
Two 、 Partial source code
close all; clear; clc;
% Reading data
savefile = 'ForensicImage/PSTest-3';
orgimage = imread(strcat(savefile,'.jpg'));
load(strcat(savefile,'.mat'));
figure,subplot(131);imshow(orgimage);title(' Forged image ');
% Calculate measurement tips
K_value=line_number:4;
fake_saliency=zeros(size(orgimage,1),size(orgimage,2),'uint8');
Grave_Point_x=0;
Grave_Point_y=0;
Grave_K=0;
for i=1:line_number
% Distance cue
K_value(i,1)=Distance_inv(Points(((1+(i-1)*3):(3+(i-1)*3)),:),fish_x,fish_y,fish_r,1);
% Volume prompt
K_value(i,2)=Volume_inv(Points(((1+(i-1)*3):(3+(i-1)*3)),:),fish_x,fish_y,fish_r,1);
% Combination prompt
K_value(i,3)=Combine(K_value(i,2),K_value(i,1));
% An unbelievable possibility
K_value(i,4)=1-0.9*exp(-(K_value(i,3)*10)^2/((0.2^2)*2));
% Calculate the center of gravity
if K_value(i,4)>0.5
Grave_Point_x=Grave_Point_x+1*(Points(1+(i-1)*3,1)...
+Points(2+(i-1)*3,1)+Points(3+(i-1)*3,1));
Grave_Point_y=Grave_Point_y+1*(Points(1+(i-1)*3,2)...
+Points(2+(i-1)*3,2)+Points(3+(i-1)*3,2));
Grave_K=Grave_K+1;
end
fake_saliency = Line2image(fake_saliency, K_value(i,4),...
Points(((1+(i-1)*3):(3+(i-1)*3)),:));
end
I=rgb2gray(orgimage);
BW= edge(I,'canny',0.1);
subplot(132);imshow(BW); title(' Fake line detection ');
hold on;
for i=1:line_number
if K_value(i,4)>0.5 % line detection with S>0.5
plot(Points((1+(i-1)*3),1),Points((1+(i-1)*3),2),'Color', [1,0,0]);
plot(Points((2+(i-1)*3),1),Points((2+(i-1)*3),2),'Color', [1,0,0]);
plot(Points((3+(i-1)*3),1),Points((3+(i-1)*3),2),'Color', [1,0,0]);
line([Points((1+(i-1)*3),1) Points((2+(i-1)*3),1)], [Points((1+(i-1)*3),2) Points((2+(i-1)*3),2)],...
'Color', [1,0,0], 'LineWidth', 3)
line([Points((2+(i-1)*3),1) Points((3+(i-1)*3),1)], [Points((2+(i-1)*3),2) Points((3+(i-1)*3),2)],...
'Color', [1,0,0], 'LineWidth', 3)
else
plot(Points((1+(i-1)*3),1),Points((1+(i-1)*3),2),'Color', [0,1,0]);
plot(Points((2+(i-1)*3),1),Points((2+(i-1)*3),2),'Color', [0,1,0]);
plot(Points((3+(i-1)*3),1),Points((3+(i-1)*3),2),'Color', [0,1,0]);
line([Points((1+(i-1)*3),1) Points((2+(i-1)*3),1)], [Points((1+(i-1)*3),2) Points((2+(i-1)*3),2)],...
'Color', [0,1,0], 'LineWidth', 3)
line([Points((2+(i-1)*3),1) Points((3+(i-1)*3),1)], [Points((2+(i-1)*3),2) Points((3+(i-1)*3),2)],...
'Color', [0,1,0], 'LineWidth', 3)
end
end
% Generate a false saliency graph
if Grave_K~=0
Grave_Point_x=round(Grave_Point_x/(Grave_K*3));
Grave_Point_y=round(Grave_Point_y/(Grave_K*3));
fake_saliency(Grave_Point_y-10:Grave_Point_y+10,...
Grave_Point_x-10:Grave_Point_x+10)=255;
end
3、 ... and 、 Running results

Four 、matlab Edition and references
1 matlab edition
2014a
2 reference
[1] Cai Limei .MATLAB The image processing —— theory 、 Algorithm and example analysis [M]. tsinghua university press ,2020.
[2] Yang Dan , Zhao Haibin , Long Zhe .MATLAB Detailed explanation of image processing examples [M]. tsinghua university press ,2013.
[3] Zhou pin .MATLAB Image processing and graphical user interface design [M]. tsinghua university press ,2013.
[4] Liu Chenglong . Master MATLAB The image processing [M]. tsinghua university press ,2015.
3 remarks
This part of the introduction is taken from the Internet , For reference only , If infringement , Contact deletion
边栏推荐
- How much business do you need to know to do data analysis
- 医疗是什么?AI医疗概念解析AI
- 合成大西瓜小游戏微信小程序源码/微信游戏小程序源码
- This high imitation millet mall project is amazing
- Test - use case - detail frenzy
- Salesforce Future method in salesforce – @future
- Dot and cross product
- Android App Bundle探索,客户端开发面试题目
- docker redis集群配置
- First week of summer vacation
猜你喜欢

extern、struct等关键字

Three types of transactions in EF core (saveChanges, dbcontexttransaction, transactionscope)

Index principle and filling factor in database

测试 - 用例篇 - 细节狂魔

【FreeRTOS】07 二值信号量、计数信号量

Keywords such as extern and struct

解决项目依赖报红问题

Revit API: schedule viewschedule

Dot and cross product

UART协议时序总结
随机推荐
【数字信号】基于matlab模拟窗函数频谱细化【含Matlab源码 1906期】
Do280openshift access control -- manage projects and accounts
SQL Server 中 GO 的用法
Recommend 4 flutter heavy open source projects
MySQL architecture (basic)
[leetcode notes] no118 Yanghui triangle
医疗是什么?AI医疗概念解析AI
Leetcode - linked list written test questions
Kubernetes basic concept
微信小程序中three.js的canvas非全屏情况下射线检测不准确问题解决方案
Don't miss | Huawei's internal data - Successful Project Management PPT (page 123)
Three types of transactions in EF core (saveChanges, dbcontexttransaction, transactionscope)
985本3Android程序员40天拿下阿里P6口头offer,面试成功后整理了这些面试思路
云原生架构(05)-应用架构演进
Docker deploy redis
Complete collection of development environment configuration -- Visual Studio 2022 installation
Comment utiliser l'entrepôt de données pour créer une table de synchronisation
解决项目依赖报红问题
js 语言 精度问题
Android 72021 latest Android interview written test questions sharing