Bonjour; je suis un debutant en MATLAB. est ce que vs pouvez m'indiquer comment executer le code contenu sur la page suivante:
https://www.ceremade.dauphine.fr/~pe...c_descriptors/
Version imprimable
Bonjour; je suis un debutant en MATLAB. est ce que vs pouvez m'indiquer comment executer le code contenu sur la page suivante:
https://www.ceremade.dauphine.fr/~pe...c_descriptors/
Bonjour,
Il suffit de suivre ce qui est dit dans la partie Installing toolboxes and setting up the path.
Tu peux aussi voir ce sujet de la FAQ.
bonjours; j'ai procédé comme suit:
-creer un dossier vide.
-placer les dossier ( signal toolbox, general toolbox and graph toolbox) dans ce dossier vide.
-creer un fichier nommé : numericaltour.m
-ouvrir ce fichier sous matlab editor
-ecrire les lignes suivantes pas par pas (à chaque fois j'ajoute une partie de code, je compile)
au début ça marche bien mais on arrivant au deux dernières lignes:
j'ai l'erreur suivante:Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 getd = @(p)path(p,path); getd('toolbox_signal/'); getd('toolbox_general/'); getd('toolbox_graph/'); n = 200; name = 'centaur2'; M = load_image(name,n); M = perform_blurring(M,5); M = double( rescale( M )>.5 ); if M(1)==1 M = 1-M; end clf; %imageplot(-M); bound = compute_shape_boundary(M); nbound = size(bound,2); W = ones(n); L = zeros(n)-Inf; L(M==1) = +Inf; start_points = [95; 20]; options.constraint_map = []; D0 = perform_fast_marching(W, start_points, options); D0(M==0) = Inf;
Citation:
Undefined function 'perform_front_propagation_2d_slow' for
input arguments of type 'double'.
Error in perform_fast_marching (line 118)
[D,S] =
perform_front_propagation_2d_slow(W,start_points,end_points,nb_iter_max,
H);
Error in numericaltour (line 21)
D0 = perform_fast_marching(W, start_points, options);
Il manque (en supposant que tu te trouves dans ton dossier)
Mais préfère rentrer le chemin absolu :Code:
1
2
3 getd('./toolbox_signal/'); getd('./toolbox_general/'); getd('./toolbox_graph/');
Code:
1
2
3
4 chemin = '<chemin de ton dossier>'; getd( fullfile(chemin, 'toolbox_signal') ); getd( fullfile(chemin, 'toolbox_general') ); getd( fullfile(chemin, 'toolbox_graph') );