How to read all images from two folders and show them and also count the number of images

2 ビュー (過去 30 日間)
edusadiq
edusadiq 2019 年 11 月 24 日
編集済み: KALYAN ACHARJYA 2019 年 11 月 24 日
Can someone send me the complete code for
  1. Loading all images from two folders
  2. Show all images
  3. Count the total number of images
Script Code ?

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 11 月 24 日
編集済み: KALYAN ACHARJYA 2019 年 11 月 24 日
path_directory1='folder1_name_here';
count1=length(dir([path_directory1 '/*.image_extention_format']));
path_directory2='folder2_name_here';
count2=length(dir([path_directory2 '/*.image_extention_format']));
total_images=count1+count2
See here for one folder call images or using fullfile here

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by