"Teoh " <email@example.com> wrote in message <firstname.lastname@example.org>...
> Hi people out there,
> i'm doing a image process from a video but i have break them down into indivial frame, let say if i have Frame 0001 - Frame 0100 store in my C:\Users\Ren\Desktop
> when i want to do imread, i have to type
> Pic0001 = IMREAD('C:\Users\Ren\Desktop\Frame 0001.png');
> Pic0002 = IMREAD('C:\Users\Ren\Desktop\Frame 0002.png');
> Pic0100 = IMREAD('C:\Users\Ren\Desktop\Frame 0100.png');
> is it possible to create a loop for this? help mi.....
On 24/11/10 12:33 AM, Teoh wrote:
> thank i got it...
> but the frame picture is at another file. if i place my code in the same
> folder as the picture
> a = sprintf('Frame %4.4d.png', k);
> i can get it when i place it in another file
> a = sprintf('C:\Users\Ren\Desktop\simulation\'Frame %4.4d.png', k);
> it is unable to read as after the C: there is a \ is there a way to
> solve this problem?
a = sprintf('C:\\Users\\Ren\\Desktop\\simulation\\Frame %4.4d.png', k);
a = sprintf('C:/Users/Ren/Desktop/simulation/Frame %4.4d.png', k);