How to Expand the matrix by considering it be equal size of image and scale it

1 次查看(过去 30 天)
How to Expand the matrix by considering it be equal size of image and scale it ..?
I have a numeric matrix which contains a ascii values of str 'Hello' .. Now I want to read an image and Expand the matrix by considering it be equal size of image and scale it .. Please help

回答(1 个)

Walter Roberson
Walter Roberson 2018-1-4
image_read_in = imread('ImageFileNameHere.png');
[rows, cols, panes] = size(image_read_in);
resized_matrix = imresize(NumericMatrix, [rows, cols]);
imagesc(resize_matrix)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by