Image size (height) normalization
Mostrar comentarios más antiguos
I have the following binary images: 1)

2)

The height of the above images are 53 and 104 pixels respectively. I want to normalize these two height into for example 80 pixels. So is there any function in Matlab that can do that?
Respuestas (1)
Image Analyst
el 10 de Dic. de 2015
Use imresize();
resizedImage1 = imresize(binaryImage1, 80/53);
resizedImage2 = imresize(binaryImage2, 80/104);
2 comentarios
Mohammad
el 11 de Dic. de 2015
Image Analyst
el 11 de Dic. de 2015
Just give the actual rows and columns you want
[rows, columns] = size(binaryImage1);
resizedImage1 = imresize(binaryImage1, [80, columns]);
[rows, columns] = size(binaryImage2);
resizedImage2 = imresize(binaryImage2, [80, columns]);
Categorías
Más información sobre Geometric Transformation and Image Registration en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!