필터 지우기
필터 지우기

How to display vid variable in the form of image from mat file?

조회 수: 3 (최근 30일)
Shilpa Sonawane
Shilpa Sonawane 2021년 11월 27일
답변: yanqi liu 2021년 11월 29일
I downloaded AV Letters dataset for AVSR. It consists of mat file. I read mat file which consists of two variable.
load A1_Anya-lips.mat;
Output-
siz [60 60 27]
vid [4800 27]
when i disply vid variable, image is not displayed.
How i can display that?

답변 (1개)

yanqi liu
yanqi liu 2021년 11월 29일
yes,sir,may be use the reshape and display as image,such as
clc; clear all; close all;
load A1_Anya-lips.mat
for i = 1 : siz(3)
a = reshape(vid(:,i), siz(1), siz(2));
figure(1);
subplot(3,9,i); imshow(a, []);
end

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by