can we able to generate an image from the given pixel values?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
imread of an image will gives pixel values in the command window.. can we regenerate the same image from the pixel value?
3 Kommentare
Walter Roberson
am 27 Apr. 2013
Some languages are better suited for some tasks than for others.
Akzeptierte Antwort
Walter Roberson
am 26 Apr. 2013
imagedata = imread('YourImage.jpg');
imwrite(imagedata, 'YourNewImage.tif'); %can even change the image type
2 Kommentare
Walter Roberson
am 26 Apr. 2013
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!