当前位置:网站首页>[image detection] realize the detection of nostrils and pupil circles based on combined separation filter matlab source code
[image detection] realize the detection of nostrils and pupil circles based on combined separation filter matlab source code
2022-07-27 23:26:00 【Matlab scientific research studio】
1 Content introduction
In this paper, we propose a fast combined separabil-ity filter, which can selectively detect circular features such as pupils and nostrils in an image of the human face. The proposed filter is designed as a combination of multiple rectangle separability filters so that it can achieve high-speed processing and high positioning ac-curacy at the same time. The evaluation experiments using synthetic images and real face images show that the proposed filter is 70 times faster than the conven-tional circular separability filter.
2 Simulation code
function MAP = cvtCombSimpRectFilter(I,P,sh)% Function to generate separability map for rectangular filters (vertical and horizontal)% Input: I: integral image, obtained by using cvtIntegralImage45(X);% P: integral image of the square pixel values, obtained by using cvtIntegralImage45(X.^2);% sh: size of the filter% Output: MAP: two separability maps (diagonal left and diagonal right), with size: [Height, Width, 2].%bh = sh*2;bw = ceil(sh/3);sw = ceil(sh/3);dh =0;dw =0;MAP(:,:,1) = tmpFnc(I,P,bh,bw,sh,sw,dh,dw);MAP(:,:,2) = tmpFnc(I,P,bw,bh,sw,sh,dh,dw);end%%function MAP = tmpFnc(I,P,bh,bw,sh,sw,dh,dw)MAP = zeros(size(I)-1);[H,W] = size(MAP);r = max([bh,bw]);N = (2*bh+1)*(2*bw+1);N1 = (2*sh+1)*(2*sw+1);N2 = N-N1;S =I((1+r:H-r)-bh,(1+r:W-r)-bw) + I((1+r:H-r)+bh+1,(1+r:W-r)+bw+1) - I((1+r:H-r)-bh,(1+r:W-r)+bw+1) -I((1+r:H-r)+bh+1,(1+r:W-r)-bw);T =P((1+r:H-r)-bh,(1+r:W-r)-bw) + P((1+r:H-r)+bh+1,(1+r:W-r)+bw+1) - P((1+r:H-r)-bh,(1+r:W-r)+bw+1) -P((1+r:H-r)+bh+1,(1+r:W-r)-bw);M = S./N;Y = T./N;St = Y - M.^2;S1 =I((1+r:H-r)-sh+dh,(1+r:W-r)-sw+dw) + I((1+r:H-r)+sh+dh+1,(1+r:W-r)+sw+dw+1) - I((1+r:H-r)-sh+dh,(1+r:W-r)+sw+dw+1) - I((1+r:H-r)+sh+dh+1,(1+r:W-r)-sw+dw);S2=S-S1;M1=S1./N1;M2=S2./N2;Sb = ((N1*((M1-M).^2)) + (N2*((M2-M).^2)))/N;MAP((1+r:H-r),(1+r:W-r)) = (Sb./St).*sign(M2-M1);MAP(isnan(MAP))=0;MAP(isinf(MAP))=0;end
3 Running results




4 reference
[1] Qiu C , Kotani K , Lee F , et al. An Accurate Eye Detection Method Using Elliptical Separability Filter and Combined Features[J]. Int.j.comput. netw.secur, 2009, 9(8):65-72.
[2] Y. Ohkawa, C. H. Suryanto, K. Fukui, "Fast Combined Separability Filter for Detecting Circular Objects",
The twelfth IAPR conference on Machine Vision Applications (MVA) pp.99-103, 2011.
[3] K. Fukui, O. Yamaguchi, "Facial feature point extraction method based on combination of shape extraction and pattern matching", Systems and Computers in Japan 29 (6), pp.49-58, 1998.
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 .
边栏推荐
- 只会Excel想做图表可视化,让数据动起来?可以,快来围观啦(附大量模板下载)
- How to narrow the gap between project planning and implementation?
- Real time Bi (III) technical implementation of offline data and real-time data processing
- Redis网红高频面试题三连:缓存穿透?缓存击穿?缓存雪崩?
- [noi2018] return (Kruskal reconstruction tree / persistent and search set)
- Excel only wants to visualize charts and make data move? Yes, come and watch (with a large number of templates to download)
- Network development socket and UDP, TCP protocols
- Basic SQL DDL
- 8000字讲透OBSA原理与应用实践
- Pentium fast system call learning
猜你喜欢

Vulnhub range double trouble

Three consecutive high-frequency interview questions of redis online celebrity: cache penetration? Cache breakdown? Cache avalanche?

Cron expression

深入了解 XXE 注射

网络开发套接字以及UDP、TCP协议

Process and planned task management

Cloudcompare & PCL platform convex hull method to calculate crown volume

cron 表达式

【数字识别】基于知识库实现手写体数字识别附matlab代码
![[GNN report] Tang Jian, Montreal, Canada: Geometric deep learning for drug discovery](/img/ef/aa490aeff5a0690257cd6eca7d5e28.png)
[GNN report] Tang Jian, Montreal, Canada: Geometric deep learning for drug discovery
随机推荐
containerd ctr运行ansible容器执行ansible-playbook任务完整命令
Deploy dolphin scheduler high availability cluster based on rainbow
XML 外部实体 (XXE) 漏洞及其修复方法
Pyqt5 rapid development and practice 4.10 window drawing controls
C language explanation series -- understanding of functions (5) function recursion and iteration
Memoirs of three years in junior high school
On data management of data warehouse
Fluorescence imaging of cle19 polypeptide in cells preparation of fluorescence quenching quantum dots of bovine serum albumin
Read an article to understand artificial neural network
Preliminary understanding of Panda3D audio and advanced interactive components
Px4 module design part 13: workqueue design
You don't know about redis. Let me explain the underlying data structure of redis in detail
记录一下使用R语言中关于formatC的错误
【 图像去雾】基于暗通道和非均值滤波实现图像去雾附matlab代码
360 was selected into the panorama of China's security industry, and isc2022 talked about the direction of security services in 63 fields
Do you want to be dismissed? Let's take a look at the "exit tips" of programmers
Cloud native enthusiast weekly: a complete collection of client go examples
CSDN dedicated killer technology -- Google browser plug-in
Three consecutive high-frequency interview questions of redis online celebrity: cache penetration? Cache breakdown? Cache avalanche?
Exercise --- BFS