【图像处理】基于形状提取和模式匹配组合的面部特征点提取方法附Matlab代码

简介: 【图像处理】基于形状提取和模式匹配组合的面部特征点提取方法附Matlab代码

✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。

🍎个人主页:Matlab科研工作室

🍊个人信条:格物致知。

更多Matlab仿真内容点击👇

智能优化算法  神经网络预测雷达通信 无线传感器

信号处理图像处理路径规划元胞自动机无人机 电力系统

⛄ 内容介绍

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.

⛄ 部分代码

function MAP = cvtCombSimpRectFilter45(I,P,sh)

% Function to generate separability map for diagonal filters (diagonal left and right)

% Input: I: 45 degrees integral image, obtained by using cvtIntegralImage45(X);

%        P: 45 degrees 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].

%

% If you use this code, we would appreciate if you cite the following paper(s):

%

% [1] 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.

%

% [2] 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.

%

% This code is written by Yasuhiro Ohkawa and distributed under BSD License.

% Computer Vision Laboratory (CVLAB)

% Graduate school of Systems and Information Engineering

% University of Tsukuba

% 2016

%

% Email: tsukuba.cvlab@gmail.com

% HP: http://www.cvlab.cs.tsukuba.ac.jp/

%



r = round(sh/sqrt(2));

w = ceil(sh/3/sqrt(2));

br = 2*r;


MAP(:,:,1) = tmpFnc(I,P,r,br,w,w);

MAP(:,:,2) = tmpFnc(I,P,w,w,r,br);


end


%%

function MAP = tmpFnc(I,P,r,br,w,bw)


MAP = zeros(size(I)-1);

[H, W] = size(MAP);


h = bw+br+2;

N =(2*bw+1)*(2*(1+2*br));

N1=(2*w+1)*(2*(1+2*r));

N2=N-N1;


HH = bw + br +1+1:H-(bw + br +2);

WW = bw + br +3:W-(bw + br+1);

P1 = I(HH - bw - br -1      ,WW + bw - br - 1);

P2 = I(HH + bw - br -1+1    ,WW - bw - br - 1-1  );

P3 = I(HH + bw + br +1      ,WW - bw + br - 1);

P4 = I(HH - bw + br         ,WW + bw + br    );

S = (P4+P2-P3-P1);


P1 = P(HH - bw - br -1      ,WW + bw - br - 1);

P2 = P(HH + bw - br -1+1    ,WW - bw - br - 1-1  );

P3 = P(HH + bw + br +1      ,WW - bw + br - 1);

P4 = P(HH - bw + br         ,WW + bw + br    );

T= (P4+P2-P3-P1);


M = S./N;

Y = T./N;

St = Y - M.^2;


P1 = I(HH - w - r -1      ,WW + w - r - 1);

P2 = I(HH + w - r -1+1    ,WW - w - r - 1-1  );

P3 = I(HH + w + r +1      ,WW - w + r - 1);

P4 = I(HH - w + r         ,WW + w + r    );

S1= (P4+P2-P3-P1);


S2=S-S1;

M1=S1/N1;

M2=S2/N2;


Sb = ((N1*((M1-M).^2)) + (N2*((M2-M).^2)))/N;


MAP(h:end-h,h:end-h)=(Sb./St).*sign(M2-M1);

MAP(isnan(MAP))=0;

MAP(isinf(MAP))=0;

end

⛄ 运行结果

⛄ 参考文献

[1]谢琛. 基于主动形状模型的人脸特征提取技术研究与应用[D]. 国防科学技术大学, 2009.

[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代码实现)
【水下图像增强融合算法】基于融合的水下图像与视频增强研究(Matlab代码实现)
991 0
|
算法 定位技术 计算机视觉
【水下图像增强】基于波长补偿与去雾的水下图像增强研究(Matlab代码实现)
【水下图像增强】基于波长补偿与去雾的水下图像增强研究(Matlab代码实现)
1273 0
|
算法 机器人 计算机视觉
【图像处理】水下图像增强的颜色平衡与融合技术研究(Matlab代码实现)
【图像处理】水下图像增强的颜色平衡与融合技术研究(Matlab代码实现)
421 0
|
新能源 Java Go
【EI复现】参与调峰的储能系统配置方案及经济性分析(Matlab代码实现)
【EI复现】参与调峰的储能系统配置方案及经济性分析(Matlab代码实现)
426 0
|
机器学习/深度学习 算法 机器人
使用哈里斯角Harris和SIFT算法来实现局部特征匹配(Matlab代码实现)
使用哈里斯角Harris和SIFT算法来实现局部特征匹配(Matlab代码实现)
560 8
|
机器学习/深度学习 编解码 算法
基于OFDM技术的水下声学通信多径信道图像传输研究(Matlab代码实现)
基于OFDM技术的水下声学通信多径信道图像传输研究(Matlab代码实现)
510 8
|
机器学习/深度学习 数据采集 测试技术
基于CEEMDAN-VMD-BiLSTM的多变量输入单步时序预测研究(Matlab代码实现)
基于CEEMDAN-VMD-BiLSTM的多变量输入单步时序预测研究(Matlab代码实现)
451 8
|
机器学习/深度学习 算法 自动驾驶
基于导向滤波的暗通道去雾算法在灰度与彩色图像可见度复原中的研究(Matlab代码实现)
基于导向滤波的暗通道去雾算法在灰度与彩色图像可见度复原中的研究(Matlab代码实现)
756 8
|
机器学习/深度学习 供应链 算法
【电动车】基于削峰填谷的电动汽车多目标优化调度策略研究(Matlab代码实现)
【电动车】基于削峰填谷的电动汽车多目标优化调度策略研究(Matlab代码实现)
421 0
|
编解码 运维 算法
【分布式能源选址与定容】光伏、储能双层优化配置接入配电网研究(Matlab代码实现)
【分布式能源选址与定容】光伏、储能双层优化配置接入配电网研究(Matlab代码实现)
962 12

热门文章

最新文章