doubt regards the image
Mostra commenti meno recenti
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*
Risposte (1)
Walter Roberson
il 8 Nov 2012
0 voti
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 Commenti
Walter Roberson
il 8 Nov 2012
PNG and TIFF are lossless by default. For lossless JPEG, look for 'lossless' in http://www.mathworks.com/help/matlab/ref/imwrite.html
ajith
il 8 Nov 2012
Jan
il 8 Nov 2012
@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
il 8 Nov 2012
Modificato: Walter Roberson
il 8 Nov 2012
This is not the same encoding technique as JPEG with 100% quality.
Categorie
Scopri di più su Convert Image Type in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!