当前位置:网站首页>【图像检测】基于Combined Separability Filter实现鼻孔和瞳孔等圆检测matlab源码
【图像检测】基于Combined Separability Filter实现鼻孔和瞳孔等圆检测matlab源码
2022-07-27 20:19:00 【Matlab科研工作室】
1 内容介绍
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 仿真代码
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 运行结果




4 参考文献
[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.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
边栏推荐
- Motorola v. hytera: hytera was awarded 5.3 billion yuan
- 微信安装包11年膨胀575倍,UP主:“98%的文件是垃圾”;苹果应用商店被曝大量色情App;四大科技巨头呼吁废除闰秒|极客头条
- 20 character short domain name bypass replication
- Cron expression
- Test article
- Analysis of cloud native application security organization structure
- 八大排序之冒泡、快排、堆排、基数排序
- "The faster the code is written, the slower the program runs."
- Eight years of love between me and the message queue
- Feed stream application reconfiguration - Architecture
猜你喜欢

数据仓库项目从来不是技术项目

2022年五大网络管理趋势

浅谈数仓的数据治理

图论的小技巧以及扩展

Network development socket and UDP, TCP protocols

Deploy dolphin scheduler high availability cluster based on rainbow

Read an article to understand artificial neural network

Cloudcompare & PCL platform convex hull method to calculate crown volume

Data warehouse project is never a technical project

Library management system based on SSM framework
随机推荐
Exam summary on May 31, 2022
Jupyter notebook solves the problem that printing information cannot be viewed after closing the browser
[stonedb fault diagnosis] database instance crash
2022/6/5考试总结
Containerd CTR run the ansible container and execute the complete command of ansible playbook task
In depth analysis - file operation
[noi2018] bubble sort (combination + Cartland number +dp+ tree array)
[C language] simulate and implement string functions (Part 1)
Read an article to understand artificial neural network
Px4 module design part 13: workqueue design
毕设-基于SSM高校后勤管理系统
Unity 的基础光照
Eight years of love between me and the message queue
Exam summary on May 13, 2022
Leetcode-461. Hamming distance
Purple light FPGA solves the mask problem! Boost the overall speed-up of mask production
UDF and analysis cases of sparksql, 220726,,
NOI 2018 简要题解
It's time to say goodbye gracefully to nullpointexception
Analysis of cloud native application security organization structure