Saving a Matrix as an Image and then extracting same matrix from Image.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Fareed Jamali
el 30 de Mayo de 2021
Editada: Fareed Jamali
el 30 de Mayo de 2021
There is a "smag" value that has the type double. I want to save the "smag" matrix in the form of image and send the image to some person. I want the other person to read the image and extract the "smag" value. Now, when I read the image I get a matrix of type uint8. Attaching the smag mat file as a reference.
All I want is to save the smag as a figure and then read the figure to extract the same matrix ("smag") of something similar or near similar.
smag.mat file is attached for the reference. Any help would be appreciated.
clear all
close all
clc
load('smag.mat') %smag is of type double
imwrite(smag,'FigureNew.jpeg');
b=imread('FigureNew.jpeg'); %The b matrix comes out to be of type uint8
%I want to extract the smag value from the matrix b.
0 comentarios
Respuesta aceptada
madhan ravi
el 30 de Mayo de 2021
SMAG = im2double(b) %
1 comentario
Fareed Jamali
el 30 de Mayo de 2021
Editada: Fareed Jamali
el 30 de Mayo de 2021
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Preview and Device Configuration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!