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!