1000 color jpg images classification with labels
조회 수: 1 (최근 30일)
이전 댓글 표시
I have 1000 color jpg images called train_image_#.jpg where # = 1:1000
I want to load them then with labels '1' for my training set (which consists of only one class: labelled 1)
can anyone help me with this. thanks!
댓글 수: 0
답변 (1개)
Image Analyst
2014년 4월 7일
See the FAQ for code examples: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
댓글 수: 8
Image Analyst
2014년 4월 8일
편집: Image Analyst
2014년 4월 8일
You can use readtable() (if you have R2014a version). You can't use csvread() - it won't work since both columns aren't numbers, so you should use readtable() which can handle columns of different types. If you have an old version of MATLAB, use textscan() or fgetl() along with sscanf().
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!