Ask Your Question
0

save images

asked 2013-04-23 20:28:33 -0600

MM gravatar image

updated 2013-04-23 20:32:00 -0600

Hello,

please i need to save more than image by using cvSaveImage

and i try this code

for(int i=0;i<=4;i++)

        { 


            sprintf(name,"%.jpg" ,i); 


            cvSaveImage(name,lastframe); 


        }

but it gave to me an exception.

Any Help !!

Thanks in advanced

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-04-23 20:52:52 -0600

Hello,

I think you should give a parameter to the sprintf function, like that;

sprintf(name, "frame_%d.jpg", i);

then call cvSaveImage() function

Cheers! A.K.

edit flag offensive delete link more

Comments

Thank you very much :)

MM gravatar imageMM ( 2013-04-23 20:55:42 -0600 )edit

Question Tools

Stats

Asked: 2013-04-23 20:28:33 -0600

Seen: 290 times

Last updated: Apr 23 '13