I have multiple jpeg or tiff images with timestamps as their names from a high frame rate camera. I want to extract their time stamps in an the list format without the .tiff or .jpeg extension. Kindly help
조회 수: 3 (최근 30일)
이전 댓글 표시
I have multiple jpeg or tiff images with timestamps as their names from a high frame rate camera. I want to extract their time stamps in an the list format without the .tiff or .jpeg extension.
So far the following code has helped me to get the the numbers in cell but I am not able to remove the extension from those cell.
% folderPath1 = actualFile folder
clear all;
clc;
files1 = dir('filepath');
dinfo = dir('filepath');
names_cell = {dinfo.name};
%names_cell= names_cell';
X = cell2table(names_cell);
Y = table2array(X);
Z=Y';
댓글 수: 0
답변 (1개)
Delprat Sebastien
2020년 1월 3일
You may use fileparts to retrieve the name and extention:
probably that a loop will be needed, I'm not sure if it support cell array.
Last but not least look at the following to convert the string into a date
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!