Naming xls files corresponding to image in MATLAB

1 回表示 (過去 30 日間)
Muhammad Usman
Muhammad Usman 2014 年 7 月 6 日
コメント済み: Image Analyst 2014 年 7 月 6 日
I have number of images in a folder. I have read these images, I am generating sift features and descriptors of these images and writing these in xls files. the only problem here is that i want to name the respective xls file as the name of corresponding image

採用された回答

Image Analyst
Image Analyst 2014 年 7 月 6 日
Let's say your image name has a ".png" in the name, then do
excelFileName = strrep(imageFileName, '.png', 'xlsx');
  2 件のコメント
Muhammad Usman
Muhammad Usman 2014 年 7 月 6 日
i am using
dir('*.jpeg')
to get the images from directory,first i want to get the names of all the images then name the same to my excel files
Image Analyst
Image Analyst 2014 年 7 月 6 日
No problem. Just modify it and it should work.
excelFileName = strrep(imageFileName, '.jpeg', 'xlsx');
This should solve your problem. If it does, mark the Answer as "Accepted" if it doesn't, show me your code.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRead, Write, and Modify Image についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by