{"id":24322,"date":"2019-02-15T15:55:11","date_gmt":"2019-02-15T20:55:11","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=24322"},"modified":"2019-02-15T15:55:11","modified_gmt":"2019-02-15T20:55:11","slug":"color-spaces","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2019\/02\/15\/color-spaces\/","title":{"rendered":"Color Spaces"},"content":{"rendered":"<p><a href=\"https:\/\/ciechanow.ski\/color-spaces\/\">Bartosz Ciechanowski<\/a>:<\/p>\n<blockquote cite=\"https:\/\/ciechanow.ski\/color-spaces\/\">\n<p>A color space can specify how the numeric values of the red, green, and blue components map to intensity of the corresponding light source. In other words, the position of a slider may not be equal to intensity of the light the slider controls.<\/p>\n<p>[&#8230;]<\/p>\n<p>This may seem all like a pointless transformation, but there is a good reason for doing all this nonlinear mapping. The human eye is not a simple detector of the power of the incoming light &#x2013; its response is nonlinear. A two-fold increase in emitted number of photons per second will <em>not<\/em> be perceived as twice as bright light.<\/p>\n<p>If we were to encode the colors using <a href=\"https:\/\/ciechanow.ski\/exposing-floating-point\/\">floating point numbers<\/a> the need for a nonlinear encoding function would be diminished. However, the numeric values of color are often encoded using the familiar 8 bits per component, e.g. in the most common configurations of <a href=\"https:\/\/en.wikipedia.org\/wiki\/JPEG\">JPEG<\/a> and <a href=\"https:\/\/en.wikipedia.org\/wiki\/Portable_Network_Graphics\">PNG<\/a> files. Using a nonlinear <em>tone response curve<\/em>, or TRC for short, lets us maintain more or less <em>perceptual<\/em> uniformity and use the chunky, quantized range to keep the detail in the darker parts.<\/p>\n<\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2018\/02\/01\/colour-management\/\">Colour Management<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2016\/12\/08\/making-sense-of-color-management\/\">Making Sense of Color Management<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2016\/04\/22\/ipad-pro-true-tone-and-color-gamut\/\">iPad Pro, True Tone, and Color Gamut<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2008\/09\/06\/digital-image-color-spaces\/\">Digital-Image Color Spaces<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Bartosz Ciechanowski: A color space can specify how the numeric values of the red, green, and blue components map to intensity of the corresponding light source. In other words, the position of a slider may not be equal to intensity of the light the slider controls. [&#8230;] This may seem all like a pointless transformation, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2019-02-15T20:55:14Z","apple_news_api_id":"d9edbab7-df5f-485e-b4ad-5918f356bbe7","apple_news_api_modified_at":"2019-02-15T20:55:16Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/A2e26t99fSF60rVkY81a75w","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[566,31,30],"class_list":["post-24322","post","type-post","status-publish","format-standard","hentry","category-technology","tag-color","tag-ios","tag-mac"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=24322"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24322\/revisions"}],"predecessor-version":[{"id":24323,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24322\/revisions\/24323"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=24322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=24322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=24322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}