MATLAB Answers

Store output program to a 3 d array as matrix

4 views (last 30 days)
Aliff Zin
Aliff Zin on 31 Jan 2017
Commented: Aliff Zin on 1 Feb 2017
Sorry if i sounded stupid, i am new to matlab
I wanted to do experiment on fingervein system, i got 10 users with 12 images of each person, i have create all my pre processing step in my main function including the looping
but what i wanted to know is how do i save all the processesd image into array and concatenating them into one 3d matrix so my output will be 10x12. It is possible?
Thank you
  3 Comments
Aliff Zin
Aliff Zin on 31 Jan 2017
Hi, sorry if my question is not clear
I have main function where it runs HOG feature vector and i tested on 10 users with 12 fingers of each
So when i run my main code, it will automatically store the output of extracted features (3060) x 10(user) x 12 (image) from the looping in my main function.
I need to store it in 3 different arrays each. So that i can concatenate them to form a 3D matrix. So i can have a matrix size of 3060 x 10 x 12
Sorry if it is not clear. Thank you for your reply.

Sign in to comment.

Answers (1)

Niels
Niels on 1 Feb 2017
Edited: Niels on 1 Feb 2017
A=cell(10,12);
for user=1:10
for imageNumber= 1:12
% for this to work you will need some way to get the right name
% cant help any further without more information (like image names etc)
A{user,imageNumber}=imread ("replace.png");
end
end
i think this might be kind of what you wanted
A{user,imageNumber} % will get you the data you want to access
  2 Comments
Aliff Zin
Aliff Zin on 1 Feb 2017
Sorry if my code seems wrong, i really really new to matlab. I need to get this done for my project. Thank you sir.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by