imagemagick - get individual frames from gif image in matlab -


i want find frame individual gif image.i means want convert gif image seperate jpeg images in matlab. please suggest me how can this? attached link project gif image.

http://www.google.co.in/imgres?q=gif+images+cartoons&hl=en&biw=1366&bih=667&tbm=isch&tbnid=e0vlnxandtyxqm:&imgrefurl=http://en.loadtr.com/animated_bear_gif_cartoons-410732.htm&docid=idghmojkk_ue8m&imgurl=http://img1.loadtr.com/b-410732-animated_bear_gif_cartoons.gif&w=338&h=290&ei=_kvnuf6wlma9kaxwjyhoag&zoom=1&ved=1t:3588,r:0,s:0,i:85&iact=rc&page=1&tbnh=177&tbnw=206&start=0&ndsp=14&tx=114&ty=101

use imread read frames @ once, or read them 1 one, explained here.

example this post on matlab central:

allframedata = imread('yourfile.gif', 'frames', 'all'); 

or

for = 1:n      % n number of frames     image = imread('yourfile.gif', i);     filename = ['pathtofolder' '\\' int2str(i) '.png'];     imwrite(image, filename); end 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -