Is there a way to read images from a folder and save it in powerpoint

I have approx. 100 images , I want to read those images, do the resizing and save it in a power point using matlab, Is it way to save those images in a power point giving title to each slide. I am reading images using this code:
for i = 1:numel(pngfiles)
im{i} = imread(pngfiles{i});
imrgb{i} = rgb2gray(im{i});
imrgb_z{i} = imrgb{i}(160:350,280:450);
end
How do I save all those images in im{i} or Imrgb_z{i}, in a power point.Please let me know.
Thanks,

 採用された回答

Shashank Prasanna
Shashank Prasanna 2013 年 7 月 29 日

2 投票

Here is a technical support solution that explains how to go about it:

3 件のコメント

Ankit Gupta
Ankit Gupta 2013 年 7 月 29 日
Hi shashank, Thanks, but is there a example to add images in a loop into the ppt, I have around 100 images, I can read and write images in a folder but how do I add them to the next slide everytime
for i = 1:numel(pngfiles)
im{i} = imread(pngfiles{i});
imwrite(im{i},sprintf('image%d.png',i));
thanks,
Shashank Prasanna
Shashank Prasanna 2013 年 7 月 29 日
Did you try using the code in the above link in a loop?
Ankit Gupta
Ankit Gupta 2013 年 7 月 29 日
Hi,
I tried it, but I am not sure how should I add images to new slide , do I need to do imwrite, Cant I just use im{i} , Its either giving me a syntax error or
Error using Interface.91493475_5A91_11CF_8700_00AA0060263B/AddPicture Invoke Error, Dispatch Exception:Description: The specified file wasn't found."

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeImage Processing Toolbox についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by