Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shima11/skinsmoothingfilter
A lightweight SkinSmoothing Filter using Metal and CoreImage.
https://github.com/shima11/skinsmoothingfilter
cifilter coreimage ios macos
Last synced: about 1 month ago
JSON representation
A lightweight SkinSmoothing Filter using Metal and CoreImage.
- Host: GitHub
- URL: https://github.com/shima11/skinsmoothingfilter
- Owner: shima11
- License: mit
- Created: 2024-02-14T17:22:23.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-18T04:24:37.000Z (6 months ago)
- Last Synced: 2024-07-18T06:35:50.903Z (6 months ago)
- Topics: cifilter, coreimage, ios, macos
- Language: Swift
- Homepage:
- Size: 3.36 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SkinSmoothingFilter
A lightweight SkinSmoothing Filter using Metal and CoreImage.
| Before | After |
| ------ | ----- |
| ![Before](sample1.JPG) | ![After](sample2.JPG) |# Requirements
iOS 15+, macOS 11+
# Installation
You can add SkinSmoothingFilter to your project via Swift Package Manager by adding the following to your `Package.swift` file:
```swift
dependencies: [
.package(url: "https://github.com/shima11/SkinSmoothingFilter.git", .upToNextMajor(from: "1.0.0"))
]
```# Usage
To use the SkinSmoothingFilter, you first need to import the package into your project:
```swift
import SkinSmoothingFilter
```Then, create an instance of SkinSmoothingFilter, set your desired parameters, and process your images like so:
```swift
let filter = SkinSmoothingFilter()
filter.inputImage = ciImage // Your input CIImage
filter.inputAmount = inputAmount // Smoothing amount
filter.inputSharpness = inputSharpness // Image sharpness
filter.inputRadius = inputRadius // Blur radiuslet result = filter.outputImage // Processed CIImage
```# Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue if you have any ideas, bug reports, or suggestions.
# License
SkinSmoothingFilter is available under the MIT license. See the LICENSE file for more info.