using getframe to separate frames from a video...need easy code.
1 回表示 (過去 30 日間)
古いコメントを表示
Fractogene is the name of my video....
I tried:
for frame = 1:number
fractogene(frame)= getframe;
end
fractogene(117)
ans =
cdata: [240x320 uint16]
colormap: [0x3 double]
As you can see, I got a value...Does this mean anything at all?
How can I plot it, as I didn't get a plot...
0 件のコメント
採用された回答
Walter Roberson
2011 年 10 月 16 日
image(fractogene(117).cdata)
4 件のコメント
Walter Roberson
2011 年 10 月 17 日
Use subplot() to arrange the images. Note though that if you have a lot of images, the plots are going to come out very small, so you may wish to look in the MATLAB File Exchange to find one of the various contributions that offers a scrollable image area.
その他の回答 (1 件)
Image Analyst
2011 年 10 月 16 日
No that doesn't mean anything. You're getting the data in an axes but you haven't loaded anything into the axes, at least not in the code you've shown.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!