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 while evaluating axes CreateFcn


Sujet :

Images

  1. #1
    Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Mars 2012
    Messages
    92
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2012
    Messages : 92
    Points : 49
    Points
    49
    Par défaut Error while evaluating axes CreateFcn
    bonjour,
    je souhaite convertir ma vidéo (videst.avi) en image et l'afficher dans mon interface.
    j'ai essayé les deux programmes suivant:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
     
    [ref_file,ref_path,schalt] = uigetfile('videst.avi','C:\Documents and Settings\Abdelaziz\Bureau\PFE');
     
    MyVideo = aviread(fullfile(ref_path,ref_file));
     
    % conversion vidéo --> série d'image
    for i = 1:numel(MyVideo)
        imwrite(MyVideo(i).cdata,[num2str(i) '.jpeg'],'jpg')
    img=imread('num2str(i).jpg'); 
    imshow(img);
    end
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
     
    obj=mmreader('videst.avi');
    vidFrames = read(obj);
    numFrames = get(obj, 'numberOfFrames');
     
    for k = 1 : numFrames
    mov(k).cdata = vidFrames(:,:,:,k);
    mov(k).colormap = [];
    Imagei=mov(1,i).cdata(:,:,: );
    imshow(Imagei);
    end
    je sais pas si ça marche ou pas vu que dans les deux cas j'ai ce message d'erreur:
    Error while evaluating axes CreateFcn
    je pense que les axes sont soit trop grands soit trop petits!
    comment résoudre ce problème?

  2. #2
    Invité
    Invité(e)
    Par défaut
    Bonjour,

    Ce message d'erreur est loin d'être complet

  3. #3
    Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Mars 2012
    Messages
    92
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2012
    Messages : 92
    Points : 49
    Points
    49
    Par défaut
    oui le voila:
    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
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
     
    >> importV
    Warning: AVIREAD will be removed in a future release. Use MMREADER instead. 
    > In aviread at 27
      In importV>axes1_CreateFcn at 86
      In gui_mainfcn at 96
      In importV at 42
      In @(hObject,eventdata)importV('axes1_CreateFcn',hObject,eventdata,guidata(hObject))
      In graphics\private\hgloadStructDbl at 97
      In C:\Program Files\MATLAB\R2011b\toolbox\matlab\graphics\hgload.p>hgload at 69
      In openfig at 72
      In gui_mainfcn>local_openfig at 286
      In gui_mainfcn at 159
      In importV at 42 
    Error using findlist (line 17)
    'LIST' did not appear as expected.
     
    Error in aviinfo (line 125)
      [strlsize,msg,msgID] = findlist(fid,'strl');
     
    Error in aviread>getAviInfo (line 436)
        info = aviinfo(filename,'Robust');
     
    Error in aviread (line 55)
    info = getAviInfo( filename );
     
    Error in importV>axes1_CreateFcn (line 86)
    MyVideo = aviread(fullfile(ref_path,ref_file));
     
    Error in gui_mainfcn (line 96)
            feval(varargin{:});
     
    Error in importV (line 42)
        gui_mainfcn(gui_State, varargin{:});
     
    Error in
    @(hObject,eventdata)importV('axes1_CreateFcn',hObject,eventdata,guidata(hObject))
     
     
    Error using struct2handle
    Error while evaluating axes CreateFcn
     
    Error using figure
    UIJ_AreThereWindowShowsPending - timeout waiting for window to show up
     
    Error in openfig (line 135)
        figure(fig(i));
     
    Error in gui_mainfcn>local_openfig (line 286)
        gui_hFigure = openfig(name, singleton, visible);
     
    Error in gui_mainfcn (line 234)
                gui_hFigure = local_openfig(gui_State.gui_Name, 'reuse',gui_Visible);
     
    Error in importV (line 42)
        gui_mainfcn(gui_State, varargin{:});
     
    >>
    j'ai utilisé ce programme:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
     
    [ref_file,ref_path,schalt] = uigetfile('videst.avi','C:\Documents and Settings\Abdelaziz\Bureau\PFE');
     
    MyVideo = aviread(fullfile(ref_path,ref_file));
     
    % conversion vidéo --> série d'image
    for i = 1:numel(MyVideo)
        imwrite(MyVideo(i).cdata,[num2str(i) '.jpeg'],'jpg')
    img=imread('num2str(i).jpg'); 
    imshow(img);
    end

  4. #4
    Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Mars 2012
    Messages
    92
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2012
    Messages : 92
    Points : 49
    Points
    49
    Par défaut
    maintenant pour ce code:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
     
    obj=mmreader('videst.avi');
    vidFrames = read(obj);
    numFrames = get(obj, 'numberOfFrames');
     
    for k = 1 : numFrames
    mov(k).cdata = vidFrames(:,:,:,k);
    mov(k).colormap = [];
    set(hObject, 'position', [150 150 obj.Width obj.Height])
    imshow(mov(k).cdata);
    end
    j'ai ce message d'erreur:
    Error using figure
    UIJ_AreThereWindowShowsPending - timeout waiting for window to show up

    Error in openfig (line 135)
    figure(fig(i));

    Error in gui_mainfcn>local_openfig (line 286)
    gui_hFigure = openfig(name, singleton, visible);

    Error in gui_mainfcn (line 234)
    gui_hFigure = local_openfig(gui_State.gui_Name, 'reuse',gui_Visible);

    Error in importV (line 42)
    gui_mainfcn(gui_State, varargin{:});
    que faire?

  5. #5
    Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Mars 2012
    Messages
    92
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2012
    Messages : 92
    Points : 49
    Points
    49
    Par défaut autre méthode
    j'ai essayé de trouver un autre code:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    v=VideoReader('videst.avi')
    n=floor(v.Duration*v.FrameRate);
    for k=1:n
    y=read(v,k);
    image(y)
    end
    mais il ne m'affiche pas la vidéo mais UNE image de la vidéo.
    c'est déjà mieux que rien.
    d’où vient le problème?

Discussions similaires

  1. Réponses: 0
    Dernier message: 04/03/2015, 16h46
  2. Réponses: 1
    Dernier message: 24/04/2012, 16h39
  3. Gui et ' Error while evaluating uicontrol Callback'
    Par Lohique dans le forum Interfaces Graphiques
    Réponses: 8
    Dernier message: 04/06/2010, 10h31
  4. [Free Pascal] Range check error while evaluating constants
    Par Nouwanda dans le forum Free Pascal
    Réponses: 3
    Dernier message: 23/11/2009, 01h42
  5. Réponses: 2
    Dernier message: 05/02/2004, 13h58

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