国际色彩联盟 (ICC) 文件?

International Color Consortium (ICC) files?

我最近才知道 ICC 配置文件格式。作为我正在从事的更广泛项目的一部分,我需要一些 .icc 文件的源代码及其相应的解析树(或者 .icc 文件解析器)。

我在互联网上搜索过相同的内容,但现在我对以下概念感到非常困惑:

(1).icc文件有源代码吗?在网上很难找到示例 .icc 文件,我在 github 上找到的文件没有“Microsoft 颜色控制面板”就无法打开,而且没有提到源代码。

(2) 一旦我有了源代码,他们是否有现有的解析器来为这样的文件生成解析树?

'source code' 我的意思是: 在 link 之后显示一个 html 文件:https://en.wikipedia.org/wiki/Pythagorean_theorem

它的源代码看起来像:

<!DOCTYPE html>
<html class="client-nojs" lang="en" dir="ltr">
<head>
<meta charset="UTF-8"/>
<title>Pythagorean theorem - Wikipedia</title>
<script>document.documentElement.className="client-js";RLCONF={"wgBreakFrames":!1,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"YA8lRQpAICgAADmJhZgAAABI","wgCSPNonce":!1,"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":!1,"wgNamespaceNumber":0,"wgPageName":"Pythagorean_theorem","wgTitle":"Pythagorean theorem","wgCurRevisionId":1000327432,"wgRevisionId":1000327432,"wgArticleId":26513034,"wgIsArticle":!0,"wgIsRedirect":!1,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Webarchive template wayback links","Articles with short description","Short description is different from Wikidata","Wikipedia indefinitely move-protected pages","Wikipedia indefinitely semi-protected pages","CS1: long volume value","Commons category link from Wikidata",
"Wikipedia articles with BNE identifiers","Wikipedia articles with BNF identifiers","Wikipedia articles with GND identifiers","Wikipedia articles with LCCN identifiers","Wikipedia articles with NDL identifiers","Good articles","Articles containing proofs","Pythagorean theorem","Area","Angle","Equations","Pythagoras","Euclidean plane geometry","History of geometry","Proof without words"],"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Pythagorean_theorem","wgRelevantArticleId":26513034,"wgIsProbablyEditable":!1,"wgRelevantPageIsProbablyEditable":!1,"wgRestrictionEdit":["autoconfirmed"],"wgRestrictionMove":["sysop"],"wgMediaViewerOnClick":!0,"wgMediaViewerEnabledByDefault":!0,"wgPopupsReferencePreviews":!1,"wgPopupsConflictsWithNavPopupGadget":!1,"wgPopupsConflictsWithRefTooltipsGadget":!0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":!0,
"nearby
....

.icc 文件没有人们通常使用术语“源代码”的意义上的“源代码”。您可能会说,.icc 文件 源代码,它由对图像进行处理的软件进行解释。

因此,如果您有 .icc 文件,那么您就有了源代码。

您的计算机上可能有一些 .icc 文件,例如(来自 www.colourmanagement.net):

  • ubuntu: /usr/share/color/icc
  • windows: \system32\spool\drivers\color
  • mac: /Library/ColorSync/Profiles/Users/<username>/Library/ColorSync/Profiles

ICC 文件格式是...好吧,文件格式,例如 JPG 或 WAV。它是一个字节序列。我找到了 ICC Specification here on the page ICC Specifications.

要从自己的程序加载和检查 .icc 文件,我假设有一些编程语言的库。看来 ICC provides some themselves.