{"id":161,"date":"2006-01-10T21:53:23","date_gmt":"2006-01-11T02:53:23","guid":{"rendered":"http:\/\/auroralux.net\/blog\/2006\/01\/10\/lightroom-core-image-quartz-composer-and-channel-mixing\/"},"modified":"2006-01-10T22:02:28","modified_gmt":"2006-01-11T03:02:28","slug":"lightroom-core-image-quartz-composer-and-channel-mixing","status":"publish","type":"post","link":"https:\/\/fhmiv.net\/blog\/2006\/01\/10\/lightroom-core-image-quartz-composer-and-channel-mixing\/","title":{"rendered":"Lightroom, Core Image, Quartz Composer, and Channel Mixing"},"content":{"rendered":"<p>Lightroom has a greyscale mixer, similar to the channel mixer in Photoshop and the GIMP, and adds HSL Tuning with a similar user interface, but instead of the RGB values I&#8217;m used to, it also provides access to CMY. I&#8217;ve had a lot of fun converting some images from my archive in to black and white, and radically altering the color balance on others. <\/p>\n<p>It made me realize that channel mixing, levels, and curves are probably the most common photoshop or gimp tool for me, with layers and masks coming in as distant runners-up, though that may be more due to my lack of skill with the tools than with their usefullness. <\/p>\n<p>It also got me thinking, why aren&#8217;t there free image editors that aren&#8217;t the GIMP offering cool tools like that? Not that there&#8217;s anything WRONG with the GIMP, it&#8217;s just not nearly as pleasant to use as a typical Macintosh application. We&#8217;ve got Core Image and Quartz Composer on the Mac; how hard could it really be to do up a six-color mixer like Lightroom&#8217;s? <\/p>\n<p><a href=\"\/jsblog\">Scott<\/a> and I are going to find out. After work today I started browsing around for answers and didn&#8217;t find any, but I did find an Apple example on <a href=\"http:\/\/developer.apple.com\/samplecode\/RGB_ValueTransformers\/RGB_ValueTransformers.html\">RGB value transformation<\/a>. I looked up how to compute CMY values from RGB, and in about half an hour, thanks to key value coding, I had added CMY selectors to the RGB Value Transformation example. <\/p>\n<p>The images didn&#8217;t look right, and when Scott looked at it, he realized the CMY values were not masks like we wanted. The shortfall was I wasn&#8217;t finding the black point for each pixel, so my CMY values were actually intermediate values; other colors were showing up in my &#8220;mask&#8221;. <\/p>\n<p>I&#8217;d never used Quartz Composer before, but with Scott&#8217;s help, we had duplicated the results of the RGB Value Transformation example in about half an hour, this time calculating CMY per pixel. The results look a lot closer to what I would expect. <\/p>\n<p>I intend to learn how to access Core Image kernels from Objective C, so I can make a real app out of this once we&#8217;ve figured out the method. That way I should be able to add sliders to control the recombination of the channels\/colors. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lightroom has a greyscale mixer, similar to the channel mixer in Photoshop and the GIMP, and adds HSL Tuning with a similar user interface, but instead of the RGB values I&#8217;m used to, it also provides access to CMY. I&#8217;ve &hellip; <a href=\"https:\/\/fhmiv.net\/blog\/2006\/01\/10\/lightroom-core-image-quartz-composer-and-channel-mixing\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[5,6],"_links":{"self":[{"href":"https:\/\/fhmiv.net\/blog\/wp-json\/wp\/v2\/posts\/161"}],"collection":[{"href":"https:\/\/fhmiv.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fhmiv.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fhmiv.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/fhmiv.net\/blog\/wp-json\/wp\/v2\/comments?post=161"}],"version-history":[{"count":0,"href":"https:\/\/fhmiv.net\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"wp:attachment":[{"href":"https:\/\/fhmiv.net\/blog\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fhmiv.net\/blog\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fhmiv.net\/blog\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}