how to convert gray image pixel values into text file

1 次查看(过去 30 天)
clc;
clear;
close all;
x=imread('lena512.bmp');
this is code i want this image as 512*512 pixcels matrix as is in text file how thsi is possible....?
  3 个评论
Rithvik Jonna
Rithvik Jonna 2020-5-24
编辑:Rithvik Jonna 2020-5-24
Please use xlswrite function and turn to excel then you can use excel to text file
xlswrite('Image.xls',Image);
krishna kotha
krishna kotha 2020-5-24
i tried it but pixcel values jumping iam not getting exact 512*512 matrx

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Import, Export, and Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by