Matlab - mostrar un video hecho por immovie e implay en una guide

 
Vista:
sin imagen de perfil

mostrar un video hecho por immovie e implay en una guide

Publicado por Larry (9 intervenciones) el 09/09/2014 20:09:23
Captura_de_pantalla_2014-09-09_13.35.55






necesito colocar el video en la guide




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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
function varargout = cine(varargin)
% CINE MATLAB code for cine.fig
%      CINE, by itself, creates a new CINE or raises the existing
%      singleton*.
%
%      H = CINE returns the handle to a new CINE or the handle to
%      the existing singleton*.
%
%      CINE('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in CINE.M with the given input arguments.
%
%      CINE('Property','Value',...) creates a new CINE or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before cine_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to cine_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help cine

% Last Modified by GUIDE v2.5 09-Sep-2014 11:53:57

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @cine_OpeningFcn, ...
                   'gui_OutputFcn',  @cine_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before cine is made visible.
function cine_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to cine (see VARARGIN)

% Choose default command line output for cine
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes cine wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = cine_OutputFcn(hObject, eventdata, handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;


% --- Executes on button press in abrir.
function abrir_Callback(hObject, eventdata, handles)
[archivo, ruta]=uigetfile('Abrir Imagen');
FORMATS=imformats('dmc.');
if archivo==0
    return;
else
    I=dicomread(strcat(ruta,archivo));
    I=uint8(I);
    [D,map]=gray2ind(I);
    mov=immovie(D,map);
    implay(mov);
    axes(handles.axes1)
    
end
handles.imgen=strcat(ruta, archivo);
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

mostrar un video hecho por immovie e implay en una guide

Publicado por Fanni (3 intervenciones) el 29/10/2014 21:23:10
yo tengo el mismo problema y tampoco consigo respuesta sin que se abra una pantalla emergente, por ejemplo con mplay en vez de implay
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar