Products & Services Solutions Academia Support User Community Company

Learn more about Image Processing Toolbox   

isicc - True for valid ICC color profile

Syntax

TF = isicc(P)

Description

TF = isicc(P) returns True if structure P is a valid ICC color profile; otherwise False.

isicc checks if P has a complete set of the tags required for an ICC profile. P must contain a Header field, which in turn must contain a Version field and a DeviceClass field. These fields, and others, are used to determine the set of required tags according to the ICC Profile Specification, either Version 2 (ICC.1:2001-04) or Version 4 (ICC.1:2001-12), which are available at www.color.org. The set of required tags is given in Section 6.3 in either version.

Examples

Read in an ICC profile and isicc returns True.

P = iccread('sRGB.icm');

TF = isicc(P)

TF =

   1

This example creates a MATLAB structure and uses isicc to test if it's a valid ICC profile. isicc returns False.

S.name = 'Any Student';
S.score = 83;
S.grade = 'B+'

TF = isicc(S)

TF =

     0

See Also

applycform, iccread, iccwrite, makecform

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS