Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
YuAo committed Jan 27, 2016
1 parent f9764a7 commit 0d4f51b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,19 @@ You can also try to apply this filter only to the skin/face area of a image, by

Use the `YUCIHighPassSkinSmoothing`, like any other built in core image filters.

On OS X and iOS 9 or later, you can use `CIFilter(name: "YUCIHighPassSkinSmoothing")`
```swift
let filter = YUCIHighPassSkinSmoothing()
filter.inputImage = ...
filter.inputAmount = ...
let outputImage = filter.outputImage!

/* Or */

let filter = CIFilter(name: "YUCIHighPassSkinSmoothing")!
filter.setValue(inputImage, forKey: kCIInputImageKey)
filter.setValue(0.7, forKey: "inputAmount")
let outputImage = filter.outputImage!
```

`YUCIHighPass` and `YUCIRGBToneCurve` can also be used directly if you need them.

Expand Down

0 comments on commit 0d4f51b

Please sign in to comment.