I want to read image name to be an string
조회 수: 9 (최근 30일)
이전 댓글 표시
I = imread ("28-30-50-30.jpg");
after I ran this function I will get the image in variable "I",
but I want to read name of this picture ("28-30-50-30.jpg") in string to do the next step in strsprit().
How can I do it??
댓글 수: 4
채택된 답변
KSSV
2020년 1월 8일
imgNames = dir('*.jpg') ;
N = length(imgNames) ;
for i = 1:N
img = imgNames(i).name
end
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!