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 中查找有关 Images 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by