Error in Performing Operation on a Sequence of png Images

1 Ansicht (letzte 30 Tage)
Haseeb Hassan
Haseeb Hassan am 5 Sep. 2017
Kommentiert: Cam Salzberger am 5 Sep. 2017
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 Kommentar
Cam Salzberger
Cam Salzberger am 5 Sep. 2017
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?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Computer Vision Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by