Saving a Matrix as an Image and then extracting same matrix from Image.
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Fareed Jamali
le 30 Mai 2021
Modifié(e) : Fareed Jamali
le 30 Mai 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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Preview and Device Configuration 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!