Array of images indexing
3 ビュー (過去 30 日間)
古いコメントを表示
frames = [];
frame = readFrame(video);
frames = [frames; frame];
I am reading video and saving frames to an array as shown above. But after saving completed, image array becomes something like a whole new image. I cannot index image one by one but pixel by pixel. How can I properly keep image in an array?
0 件のコメント
回答 (1 件)
KALYAN ACHARJYA
2019 年 11 月 7 日
編集済み: KALYAN ACHARJYA
2019 年 11 月 7 日
Use cell array
data={frame1,frame2,........}
Frame is an image, you can same multiple frames in cell array. Its very easy to call those frames when it requires
For frame1
data{1} %>> Frame 1
....so on...
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!