Clear Filters
Clear Filters

how to convert gray image pixel values into text file

2 views (last 30 days)
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 Comments
Rithvik Jonna
Rithvik Jonna on 24 May 2020
Edited: Rithvik Jonna on 24 May 2020
Please use xlswrite function and turn to excel then you can use excel to text file
xlswrite('Image.xls',Image);
krishna kotha
krishna kotha on 24 May 2020
i tried it but pixcel values jumping iam not getting exact 512*512 matrx

Sign in to comment.

Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!