필터 지우기
필터 지우기

Error in Performing Operation on a Sequence of png Images

조회 수: 1 (최근 30일)
Haseeb Hassan
Haseeb Hassan 2017년 9월 5일
댓글: Cam Salzberger 2017년 9월 5일
fileFolder = fullfile(matlabroot,'toolbox','images','imdata','soccer'); dirOutput = dir(fullfile(fileFolder,'AT3_1m4_*.tif')); fileNames = {dirOutput.name}' numFrames = numel(fileNames) %% I = imread(fileNames{1}); sequence = zeros([size(I) numFrames],class(I)); sequence(:,:,1) = I; % for p = 2:numFrames sequence(:,:,p) = imread(fileNames{p}); end %% figure; for k = 1:numFrames imshow(sequence(:,:,k)); title(sprintf('Original Image # %d',k)); pause(1) end
I have the above code, it works well when reading tif images, but i need this to work on png images, everything i changed accordingly but can;t show the png images.
  댓글 수: 1
Cam Salzberger
Cam Salzberger 2017년 9월 5일
What is the error message, and at what line does the error occur? And can you reformat your question to use the "Code" block to make it easier to read the code?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by