当前位置:网站首页>[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 .
边栏推荐
- Cloud native enthusiast weekly: a complete collection of client go examples
- Promise solves asynchrony
- containerd ctr运行ansible容器执行ansible-playbook任务完整命令
- Library management system based on SSM framework
- Trends in software development in 2022
- Gstore weekly gstore source code analysis (V): log tracking of security mechanism
- 小程序容器技术超有料,可以让移动研发效率大幅提升
- VIM editor tutorial
- Microsoft Office 2019 download installation activation tutorial (full process diagram)
- Arm32进行远程调试
猜你喜欢

Five network management trends in 2022

With double-digit growth in revenue and profit, China Resources Yibao has quietly created these new products worth more than 100 million

Nature综述:微生物群落形成过程中的优先效应

Solve the problem that the last bit of IP address access is odd and even, or even and odd (the problem encountered when the cloud encryption machine connects to the cloud server, the whole process is

Cloudcompare & PCL platform convex hull method to calculate crown volume

【数字识别】基于知识库实现手写体数字识别附matlab代码

小程序容器技术超有料,可以让移动研发效率大幅提升

Pyqt5 rapid development and practice 4.10 window drawing controls

Excel VBA finds out the maximum and minimum values of a column of time, and repeatedly pastes multiple values according to the actual situation

CSDN dedicated killer technology -- Google browser plug-in
随机推荐
Preparation of peptide kc2s modified albumin nanoparticles / targeting peptide GX1 modified human serum albumin nanoparticles probe
How to narrow the gap between project planning and implementation?
Blood spitting finishing nanny level series tutorial - playing Fiddler bag capturing tutorial (5) - detailed explanation of fiddler monitoring panel
Px4 module design part 13: workqueue design
常用泰勒展开
网络开发套接字以及UDP、TCP协议
Basic lighting of unity
图论的小技巧以及扩展
Pyqt5 rapid development and practice 4.10 window drawing controls
Pyqt5 rapid development and practice 4.9 dialog controls
Read an article to understand artificial neural network
The principle and demonstration of service path lifting without quotation marks
Simple and practical data visualization cases
51 MCU internal peripherals: real time clock (SPI)
Real time Bi (III) technical implementation of offline data and real-time data processing
The security dilemma of software supply chain faced by enterprises
强化学习——PyTorch 实现 Advantage Actor-Critic (A2C)
The prefix is not removed when zuul gateway automatically routes
看GAN如何一步步控制图像生成风格?详解StyleGAN进化过程
Blender plug-in of 2022