IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Images Discussion :

Error using ==> |


Sujet :

Images

  1. #1
    Membre averti
    Inscrit en
    Mars 2008
    Messages
    34
    Détails du profil
    Informations forums :
    Inscription : Mars 2008
    Messages : 34
    Par défaut Error using ==> |
    Bonjour,

    voila mon code :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    model_rot = imresize(frontalmodel,[ly wx],'bilinear');
     
      % Rotate the model
      model_rot = imrotate(model_rot,-angle,'bilinear'); 
     
      % Get the coordinates of the rotated image
      [l,r,u,d] = recsize(model_rot);
     
      % Generate a new image that elects only the model region
      model_rot=imcrop(model_rot,[l u (r-l) (d-u)]);  
     
      % Get rid of the boundary noise
      model_rot = clean_model(model_rot);
      bwmodel_rot = (model_rot >=1);
     
      % Compute the center of the rotated face model 
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      bw=bwfill(bwmodel_rot,'holes');
     
      area = bwarea(bw);
    [m n] =size(bw);
    bw=double(bw);
    Et ce que j'ai comme erreur et je ne sais pas comment la corriger

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    ?? Error using ==> |
    Number of array dimensions must match.
     
    Error in ==> D:\matlab6p5\toolbox\images\images\bwfill.m
    On line 136 ==> BW2 = J | I;
     
    Error in ==> D:\matlab6p5\toolbox\images\images\bwfill.m
    On line 97 ==> J = bwfill(J, cSeeds, rSeeds, style);
     
    Error in ==> D:\matlab6p5\work\processregion1.m
    On line 119 ==> bw=bwfill(bwmodel_rot,'holes');
     
    Error in ==> D:\matlab6p5\work\detect.m
    On line 65 ==> [RectCoord,imsourcegray] = processregion1(imsourcegray,bwsegment,numholes,frontalmodel);
    merci pour votre aide

  2. #2
    Membre émérite

    Homme Profil pro
    Développeur informatique
    Inscrit en
    Décembre 2007
    Messages
    979
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Décembre 2007
    Messages : 979
    Par défaut
    Salut,

    tu peux poster ta version de Matlab ?
    tu as essayé avec IMFILL ?

    ++

  3. #3
    Membre averti
    Inscrit en
    Mars 2008
    Messages
    34
    Détails du profil
    Informations forums :
    Inscription : Mars 2008
    Messages : 34
    Par défaut
    j'ai la version 6.5
    oui j' ai esauyer avec imfill et ça marche mais j'ai un pb avec
    et voila ce que j'ai comme erreur
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    Subscripted assignment dimension mismatch.
     
    Error in ==> D:\matlab6p5\toolbox\images\images\bwarea.m
    On line 40  ==> bb(2:end-1,2:end-1) = b;
     
    Error in ==> D:\matlab6p5\work\processregion1.m
    On line 121  ==>   area = bwarea(bw);
     
    Error in ==> D:\matlab6p5\work\detect.m
    On line 65  ==>       [RectCoord,imsourcegray] = processregion1(imsourcegray,bwsegment,numholes,frontalmodel);

  4. #4
    Rédacteur/Modérateur

    Avatar de Jerome Briot
    Homme Profil pro
    Freelance mécatronique - Conseil, conception et formation
    Inscrit en
    Novembre 2006
    Messages
    20 317
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Freelance mécatronique - Conseil, conception et formation

    Informations forums :
    Inscription : Novembre 2006
    Messages : 20 317
    Par défaut
    Peux-tu mettre des WHOS dans les deux code et nous montrer ce que MATLAB retourne dans le Command Window :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    whos bwmodel_rot
      bw=bwfill(bwmodel_rot,'holes');
      
      area = bwarea(bw);
    [m n] =size(bw);
    bw=double(bw);
    Et

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    
      bw=imfill(bwmodel_rot,'holes');
      whos bw
      area = bwarea(bw);
    [m n] =size(bw);
    bw=double(bw);

Discussions similaires

  1. [Débutant] Error using ==> assert
    Par slaima15 dans le forum MATLAB
    Réponses: 13
    Dernier message: 29/10/2009, 14h09
  2. Message d'erreur "Error using ==> set"
    Par kira9744 dans le forum Interfaces Graphiques
    Réponses: 22
    Dernier message: 09/10/2009, 12h56
  3. Réponses: 6
    Dernier message: 11/06/2009, 12h24
  4. Fatal error: Using $this when not in object context
    Par lavande dans le forum Langage
    Réponses: 2
    Dernier message: 02/10/2008, 21h17
  5. Error using ''fft'' (out of memory ?)
    Par salimilas dans le forum MATLAB
    Réponses: 1
    Dernier message: 21/05/2007, 16h35

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo