Azzera filtri
Azzera filtri

How I can mex funtion in matlab

6 visualizzazioni (ultimi 30 giorni)
Zarish Anwar
Zarish Anwar il 19 Mar 2020
Hye
I have daisy descriptor code. I want to calculate features from images by using this code. While runing I.m getting error of Mex function command.
I have installed related Pacakge But it is giving me error. I have search thorughout internet But not be able to figure out
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Written and (C) by %
% Engin Tola %
% %
% web : http://cvlab.epfl.ch/~tola/ %
% email : engin.tola@epfl.ch %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This code is a matlab implementation of the algorithm presented in the
% paper titled 'A Fast Local Descriptor for Dense Matching' by Engin Tola,
% Vincent Lepetit and Pascal Fua published in the proceedings of the
% Computer Vision and Pattern Recognition 2008 Conference.
%
% Please give a reference to that paper if you use this code in any
% academic work.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Source code is available under the GNU General Public License. In short,
% if you distribute a software that uses DAISY, you have to distribute it
% under GPL with the source code. Another option is to contact us to
% purchase a commercial license.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% See the usage.matlab document about the details on how to use this code
% and some warnings
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
function [dzy] = compute_daisy(image, R, RQ, TQ, HQ, SI, LI, NT)
%%
if nargin == 5
SI = 1;
LI = 1;
NT = 1;
elseif nargin == 1
R = 15;
RQ = 3;
TQ = 8;
HQ = 8;
SI = 1;
LI = 1;
NT = 1;
end
[dzy] = init_daisy(image,R,RQ,TQ,HQ,SI,LI,NT);
o = 0; % which orientation to compute the descriptors
fprintf(1,'computing descriptors ');
tic;
dzy.descs = mex_compute_all_descriptors(dzy.H, dzy.params, dzy.ogrid(:,:,o+1), dzy.ostable, single(o) )';
time_dc=toc;
fprintf(1,'is done in %f sec\n',time_dc);

Risposte (0)

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by