how to generate image pixel value in notepad

回答(2 个)

use dlmwrite command
I=imread('rice.png'); dlmwrite('data.txt',I)
You can use fprintf() to print any array to a text file. See example in the help.

类别

在 帮助中心 和 File Exchange 中查找有关 Convert Image Type 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by