You need to create a cell arrays and store your matrices in each array as the dim is known (64x64). Below a sample of code copied from a forum for you to try. Let me know if you need further assistance.
Here is a sample function to create your matrices in a cell array:
function result = createArrays(nArrays, arraySize)
If you can't know the number of matrices in advance, you could simply use MATLAB's dynamic indexing to make the array as large as you need. The performance overhead will be proportional to the size of the cell array, and is not affected by the size of the matrices themselves. For example:
Thank you Peter... But I have tried different function to do that , it is not just read , I know how to use imread().My question is how to store multiple images specified in a folder into Matlab array?
You need to create a cell arrays and store your matrices in each array as the dim is known (64x64). Below a sample of code copied from a forum for you to try. Let me know if you need further assistance.
Here is a sample function to create your matrices in a cell array:
function result = createArrays(nArrays, arraySize)
If you can't know the number of matrices in advance, you could simply use MATLAB's dynamic indexing to make the array as large as you need. The performance overhead will be proportional to the size of the cell array, and is not affected by the size of the matrices themselves. For example:
I highly respect your answer. I would like to consult you regarding the research I am working on at the moment because it is a pattern recognition as you are professional in, if you couold please contact me on this email :
Good morning from Malaysia! I am glad to help in anyway. I will drop you an email at the ID you provided and we will try to discuss about your research work. I have done some work in pattern recognition and I am still far from being professional :)
Thanks a lot for the nice comment. It is my pleasure to have some of your experience. I am going to do my PhD hopefully next year in Pattern Recognition. So, any how we will be as colleagues in this field :).
You are most welcome. We will discuss about your work and I will try to help you in any way possible and within my power. It is my pleasure to share experience with colleagues in this field :). Best of luck in your PhD.
Hi, Your code is greate! I am also interested in pattern recognition by matlab. I am using simple ncc but I don't know how to deal with color images. Do you have any experience regarding color images by cross correlation? Thanks.