doubt regards the image

Sir, I apply levelset to an grayscaleimage after that I save it in the JPG format so it converted into the 3dimension. I used the saved image for the additional steps. but my doubt is
1. The initial grayscale matrix value and the RGB matrix is different I know about that .*I change the result JPG matrix to grayscale image. The initial gray scale Image and the result of the JPG to grayscale image both are same matrix or not*

답변 (1개)

Walter Roberson
Walter Roberson 2012년 11월 8일

0 개 추천

It depends on how you wrote the JPEG image. JPEG is by default a lossy compressor, so the data you read back from a JPEG image will not necessarily be exactly the same as what you wrote out. You can specifically request lossless JPEG compression instead, in which case the data you get back should be exactly what you wrote.

댓글 수: 5

ajith
ajith 2012년 11월 8일
편집: ajith 2012년 11월 8일
sir how to make lossless jpeg compression. shall i save it in PNG format its doesn't vary or not
Walter Roberson
Walter Roberson 2012년 11월 8일
PNG and TIFF are lossless by default. For lossless JPEG, look for 'lossless' in http://www.mathworks.com/help/matlab/ref/imwrite.html
ajith
ajith 2012년 11월 8일
thanks a lot sir
Jan
Jan 2012년 11월 8일
@ajith: Remember, that "lossless JPEG" does not mean, that the reconstructed image is identical to the original image. Rounding artifacts can modify the value slightly, but measurable.
Walter Roberson
Walter Roberson 2012년 11월 8일
편집: Walter Roberson 2012년 11월 8일
lossless JPEG has no rounding. http://en.wikipedia.org/wiki/Lossless_JPEG
This is not the same encoding technique as JPEG with 100% quality.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

질문:

2012년 11월 8일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by