{"id":237,"date":"2020-10-11T17:48:59","date_gmt":"2020-10-11T22:48:59","guid":{"rendered":"https:\/\/chibicode.org\/?p=237"},"modified":"2020-10-11T17:51:53","modified_gmt":"2020-10-11T22:51:53","slug":"coreimage-new-filters-in-ios-14-0","status":"publish","type":"post","link":"https:\/\/chibicode.org\/?p=237","title":{"rendered":"CoreImage: New Filters in iOS 14.0"},"content":{"rendered":"\n<p>iOS 14.0 recently arrived and with it, 3 new CoreImage filters:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Color Absolute Difference<\/li><li>Color Threshold<\/li><li>Color Threshold Otsu<\/li><\/ol>\n\n\n\n<p>Unfortunately, Apple has not yet updated the CoreImage documentation to include these new filters. Instead, I&#8217;ve <a href=\"https:\/\/gist.github.com\/JoshuaSullivan\/dda5a79a0f72df7ba2c71f1004f2733b\" data-type=\"URL\" data-id=\"https:\/\/gist.github.com\/JoshuaSullivan\/dda5a79a0f72df7ba2c71f1004f2733b\" target=\"_blank\" rel=\"noreferrer noopener\">created a Swift playground<\/a> that enumerates all of the properties of a CIFilter. Here are the results for those 3 filters:<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n<p>[gist https:\/\/gist.github.com\/JoshuaSullivan\/c3c167ac2b503efbfe6916a7405a0b98 file=&#8221;ColorAbsoluteDifference.txt&#8221;]<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n<p>[gist https:\/\/gist.github.com\/JoshuaSullivan\/c3c167ac2b503efbfe6916a7405a0b98 file=&#8221;ColorThreshold.txt&#8221;]<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n<p>[gist https:\/\/gist.github.com\/JoshuaSullivan\/c3c167ac2b503efbfe6916a7405a0b98 file=&#8221;ColorThresholdOtsu.txt&#8221;]<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>I have no idea what the difference is between the <strong>Color Threshold<\/strong> and the <strong>Color Threshold Otsu<\/strong> filters. I&#8217;ll follow up if I can produce a workable demo.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>iOS 14.0 recently arrived and with it, 3 new CoreImage filters: Color Absolute Difference Color Threshold Color Threshold Otsu Unfortunately, Apple has not yet updated the CoreImage documentation to include these new filters. Instead, I&#8217;ve created a Swift playground that enumerates all of the properties of a CIFilter. Here are the results for those 3 &hellip; <a href=\"https:\/\/chibicode.org\/?p=237\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CoreImage: New Filters in iOS 14.0&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-237","post","type-post","status-publish","format-standard","hentry","category-code"],"_links":{"self":[{"href":"https:\/\/chibicode.org\/index.php?rest_route=\/wp\/v2\/posts\/237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chibicode.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chibicode.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chibicode.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chibicode.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=237"}],"version-history":[{"count":6,"href":"https:\/\/chibicode.org\/index.php?rest_route=\/wp\/v2\/posts\/237\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/chibicode.org\/index.php?rest_route=\/wp\/v2\/posts\/237\/revisions\/246"}],"wp:attachment":[{"href":"https:\/\/chibicode.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chibicode.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chibicode.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}