How to make image sequence from video or images?
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to make image sequence(.mat) file like (width x height x framerate unit8)

However, I followed the web page describing video to image sequences, it converted to (width x height x 3). https://kr.mathworks.com/help/matlab/examples/convert-between-image-sequences-and-video.html

How can I make image sequence like the attachment file.
댓글 수: 0
답변 (1개)
Von Duesenberg
2018년 6월 24일
편집: Von Duesenberg
2018년 6월 24일
A quick look tells me that Alpaca probably contains 55 grayscale images whereas img is a color image with 3 channels corresponding to RGB. So if you want to stack color images, you need a 4-D array:
newArray = zeros(size(img,1), size(img,2), size(img,3), nbIm, 'uint8')
where nbIm if the number of images. Then:
newArray(:,:,:,idx) = img
for idx from 1 to nbIm.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!