Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
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

Réponses (1)

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

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by