Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコマンドを使用して、画像をグレーレベルに変換しました: rgb2gray.
rgb2gray
例えば:
I = imread('xyz.jpg'); I2 = rgb2gray(I);
新しい (変換されたイメージ) をディスクに保存するにはどうすればよいですか?
ありがとう。
imwrite(I2,filename,fmt)
参照: http://www.mathworks.co.uk/help/matlab/ref/imwrite.html
方法は次のとおりです。
imshow( enter code hereI2);
enter code here
次に、表示される図について、File --> Saveまたはを選択しますFile --> Save As...
File --> Save
File --> Save As...