can I store images with differing sizes into a matrix in matrix?

1 回表示 (過去 30 日間)
soumya
soumya 2013 年 3 月 5 日
I'm doing object detection and classification to either human or non human from a surveillance video clip. when I detect object and plot it in a rectangular box,I need to save the cropped portion of this object for the purpose of feature extraction and further training the classifier.The problem I encounter is, I'm not able to save the cropped images to a matrix;as it is not copied,I could get only the last cropped image.But I need all the blobs detected. Can anyone please help me to come out of this? Please.... Each cropped image is of different size....

採用された回答

Jan
Jan 2013 年 3 月 5 日
It would be possible to find the problem is your code, when you post the code.
A general method to store arrays of different sizes:
n = 10;
Data = cell(1, n);
for k = 1:n
Data{k} = rand(n, n);
end
  3 件のコメント
Jan
Jan 2013 年 3 月 5 日
The code is nicer, when you format it. Which part of the code concerns your problem? Which variable does not contain the wanted values?
soumya
soumya 2013 年 3 月 5 日
hey....it works...actually,i dnt used CropImgs{z}=imcrop() statement in my code.instead(CropImgs=imcrop())I included it for u...when you replied,I just thought of trying that.... Thanks a lot sir...... Thank you so much.....

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by