How to keep the pixel values same for writing an image
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Shamim
le 17 Déc 2017
Réponse apportée : rcjr15
le 19 Fév 2018
In attach picture the pixel matrix D is written as an image but if i read the same image from the written one I found that all pixel values except zero are converted to 255. Why this is happening? Is there any solution to keep the pixel values same after writing it?
0 commentaires
Réponse acceptée
Plus de réponses (1)
rcjr15
le 19 Fév 2018
Hi Shamim, Try using this: imwrite(YourImage, 'YourFile.jpg', 'mode', 'lossless') if you want to write it as JPEG file.
Or you can use PNG or TIFF extension which are lossless compression standards.
0 commentaires
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!