To be able to create a property list dictionary or json object that you use to setup a core image filter in a filter chain, you need to know what the list of keys are for each filter are and for each key what the range of allowed values is that can be assigned to the filter. To get the filter description you can get the "imagefilterattribute" property from the "imagefilterchain" type. The information can be returned in one of 3 ways. Either as a json string (see the example below) or saved to a json or a plist file (-jsonfile, -plistfile). If saving to a file then after the (-jsonfile, -plistfile) option you need to provide a file path.
...
...
@@ -46,12 +42,6 @@ To view the CIDroste filter attributes using ruby:
The above obtains the compact JSON object describing the CIDroste core image filter, parses the JSON and then outputs a more human readable form.
To get the CIDroste filter attributes on the command line:
To view a human friendly version returned by command line script, copy the result and paste it into either: [JSONLint](http://jsonlint.com) or [JSON Editor online](http://jsoneditoronline.org).
### Setting up the Properties for a Filter
All but a few of the core image filters require inputs. All the numerical inputs for the filters have default values which means for a quick test of a filter you don't need to assign these values. Other input types like the CIImage class, are required as they don't have a default, and input types like CIVector and CIColor have default values, but the default values need to be overridden.
...
...
@@ -929,6 +919,6 @@ The minimum value for both "inputDistance" and "inputSlopeWidth" is 0.0 and the
Like many core image filters, the YVSChromaKeyFilter can be part of a larger filter chain, including a filter chain of multiple YVSChromaKeyFilters. This allows transparency based on multiple chroma key colors to be achieved providing flexibility for creating images with transparency.