Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: how to import .dat file to MATLAB memory?
Replies: 6   Last Post: Jan 14, 2014 10:02 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Ooi

Posts: 2
Registered: 12/21/12
how to import .dat file to MATLAB memory?
Posted: Dec 21, 2012 9:36 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

i come across this link: http://cmp.felk.cvut.cz/~uricamic/flandmark/

it said the MATLAB code is workable, so i tried and modified:

% Load image and convert it to grayscale
I = rgb2gray(imread('DSCF5508.jpg'));
% Get face bounding box
bbox = [72, 72, 183, 183];
% Load flandmark_model file into MATLAB memory
model = flandmark_load_model('F:/Project/Face recognition/Installer/flandmark-master/data/flandmark_model.dat');
% Detect facial landmark calling the mex function
landmarks = flandmark_detector(I, int32(bbox), model);

But it comes out an error message:

Undefined function 'flandmark_load_model' for input arguments of
type 'char'.

Error in asd (line 7)
model = flandmark_load_model('F:/Project/Face
recognition/Installer/flandmark-master/data/flandmark_model.dat')

ps: asd is a script file name, named as asd.m

Can anyone help me to solve it??? I have totally no idea TT



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.