icc rgb profile editing

32 views (last 30 days)
Yiftach
Yiftach on 10 Jun 2025 at 10:51
Edited: John D'Errico on 10 Jun 2025 at 14:29
utility/function to locally edit an icc rgb profile (say adobe)?

Answers (1)

John D'Errico
John D'Errico on 10 Jun 2025 at 13:39
Edited: John D'Errico on 10 Jun 2025 at 14:29
You can use iccread and iccwrite.
help iccread
iccread - Read ICC profile This MATLAB function reads the International Color Consortium (ICC) color profile data from the file specified by the input filename. Syntax profile = iccread(filename) Input Arguments filename - Name of the file containing ICC profile character vector | string scalar Output Arguments profile - ICC profile data structure array Examples openExample('images/ReadICCProfileForTypicalPCComputerMonitorExample') See also applycform, iccfind, iccroot, iccwrite, isicc, makecform Introduced in Image Processing Toolbox before R2006a Documentation for iccread doc iccread
help iccwrite
iccwrite - Write ICC color profile data This MATLAB function writes an International Color Consortium (ICC) profile data in structure inProfile to the file specified by filename. Syntax outProfile = iccwrite(inProfile,filename) Input Arguments inProfile - Input ICC profile data structure array filename - Name of the file to write ICC profile data character vector | string scalar Output Arguments outProfile - Output ICC profile data structure array Examples openExample('images/WriteICCProfileDataToAFileExample') See also applycform, iccread, isicc, makecform Introduced in Image Processing Toolbox before R2006a Documentation for iccwrite doc iccwrite
Having used iccread, you can modify whatever you wish, then write it back out. These tools live in the image processing toolbox, so you would need that.
If you don't have the IPTB (why in the name of god why not, if you are using MATLAB to work with this stuff?) then you would need to use other tools, or write something yourself. An ICC profile is just a file, with carefully published specifications somewhere. (Probably available from the ICC.) But just use ICCREAD and ICCWRITE.

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!