Effacer les filtres
Effacer les filtres

How to link fiducial point of face image with its image

2 vues (au cours des 30 derniers jours)
KDR
KDR le 14 Jan 2017
Modifié(e) : Sheeraz Sangi le 6 Juil 2018
Hello all.. I want to perform feature extraction on facial image on its fiducial points using SURF descriptor. Fiducial point is in .dat file and image is in .jpg. So how to merge these to file inorder extract feature from only that fiducial point location. Thank you...

Réponse acceptée

Tohru Kikawada
Tohru Kikawada le 27 Jan 2017
Try to use the following code extracting features from fiducial points.
%%Prepare a facial image
% can be read from .jpg file
bodyDetector = vision.CascadeObjectDetector('UpperBody');
bodyDetector.MinSize = [60 60];
bodyDetector.MergeThreshold = 10;
I = imread('visionteam.jpg');
bboxes = step(bodyDetector, I);
Iroi = imcrop(I,bboxes(1,:));
imshow(Iroi);
%%Fiducial points
% can be read from .dat file
points = [
47.2687 37.1951;
54.3481 43.5666;
62.6075 37.1951;
72.5187 41.2068;
52.6963 52.7699;
38.0654 42.3867];
%%Extract features
[features,validPoints] = extractFeatures(rgb2gray(Iroi), points, 'Method', 'SURF');
%%Visualize
figure; imshow(Iroi); hold on
plot(validPoints,'showOrientation',true);
  3 commentaires
KDR
KDR le 27 Jan 2017
Sir..I have to perform this feature extraction on multiple images. So how can I read fiducial points of multiple images from .dat files???
I'm looking forward to your reply...... Thank you...
Tohru Kikawada
Tohru Kikawada le 31 Jan 2017
I'm not sure what format you want to use, but you can use textscan function to read fiducial points from plain text .dat files.

Connectez-vous pour commenter.

Plus de réponses (1)

Sheeraz Sangi
Sheeraz Sangi le 6 Juil 2018
Modifié(e) : Sheeraz Sangi le 6 Juil 2018
Sir,please Help me to solve this (image attachment) error.

Catégories

En savoir plus sur Computer Vision Toolbox dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by