how to convert bmp image to specific size vector ?
Ältere Kommentare anzeigen
I have dataset conains 1000 of bmp images. I need to prepare training matrix for the neural network so I'm trying to convert images to vectors with the same size, then I will append these vectors in one matrix. my problem : I'm getting different vectors sizes for each different image ! I attached example of 2 bmp image swill produce different size vectors. my code :
image = imread('sample0.bmp');
number=im2double(image);
number = number';
vector1=number(:);
image2 = imread('sample1.bmp');
number=im2double(image1);
number = number';
vector2=number(:);
Antworten (1)
Image Analyst
am 11 Jan. 2015
0 Stimmen
imresize() immediately springs to mind. Why not use that?
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!