importing multiple images matlab

后端 未结 1 865
故里飘歌
故里飘歌 2021-01-21 08:01

I have a set of 100 jpg images named consecutively and I want to add them up to get a single image. I have seen the answer from here, but it does not run with me, what happened?

1条回答
  •  鱼传尺愫
    2021-01-21 08:44

    Backslash is a special character for sprintf() and needs to be escaped. Either use "\\" instead of "\" or try constructing your file paths another way. fullfile() is a good way to do it, so you only have to use sprintf for the file name part. Also see help sprintf.

    0 讨论(0)
提交回复
热议问题