can we able to generate an image from the given pixel values?
1 回表示 (過去 30 日間)
古いコメントを表示
imread of an image will gives pixel values in the command window.. can we regenerate the same image from the pixel value?
3 件のコメント
Walter Roberson
2013 年 4 月 27 日
Some languages are better suited for some tasks than for others.
採用された回答
Walter Roberson
2013 年 4 月 26 日
imagedata = imread('YourImage.jpg');
imwrite(imagedata, 'YourNewImage.tif'); %can even change the image type
2 件のコメント
Walter Roberson
2013 年 4 月 26 日
imwrite(uint8([156 176 187...]...)
If you used [156 176 187...] then the data class would be "double" (because that is the default for MATLAB), and that would be a problem, as MATLAB assumes that "double" values should have a range of 0 to 1 for images.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!