how to use iccread if the image contains no profile
    5 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Stephen Westland
 le 18 Août 2021
  
    
    
    
    
    Commenté : Stephen Westland
 le 18 Août 2021
            It's possible to read the icc profile from an image using iccread, e.g.
P = iccread('test.tif')
However, if the image contains no profile the above code returns an error. How can we test for whether an image contains a profile before using iccread. 
0 commentaires
Réponse acceptée
  Simon Chan
      
 le 18 Août 2021
        Check the MATLAB documentation: iccread
The file can be either an ICC profile file or a TIFF file containing an embedded ICC profile. To determine if a TIFF file contains an embedded ICC profile, use the imfinfo function to get information about the file and look for the ICCProfileOffset field in the output.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Color 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!

