I'm reading a teste.jpg
image with the imread
command and transforming it into a gray image with the rgb2gray
command. I need the corresponding codes of the result of this array, in a .txt
file.
Follow the example:
A = imread ('alta-fauna15.jpg')
B = rgb2gray (A)
imshow (A) // Mostra Imagem colorida
imshow (B) // Mostra Imagem em escala de cinza
I need these values of the array B
in a .txt
file, how can I do this?