Osiris is a image processing library using Metal 2, written in Swift
There is lots of work to do ... 👀
- Image rendering
- Image processing
- Chain filters
- Transform
- More built-in filters
- Live camera processing
- Video processing
- Format converting
- Video playing
- OpenGL support
Osiris prefer dot(.) syntax 🖖
Create an instance from Osiris
// Non-traisient object
let processor = Osiris(label: "My image processor")
For rendering an image, we need an MTKView
first:
let metalView = MTKView()
// rendering
let image = UIImage(named: "originImage")
processor.processImage(image).presentOn(metalView)
First, we need some filters:
// Non-traisient object
//
// Create a filte
let reverse = Filter(kernalName: "reverseKernal")
let luma = Filter(kernalName: "lumaKernal")
then add them to the processor
// Non-traisient object
let processor = Osiris(label: "My video processor")
processor.addFilters([reverse, luma])
Last we use it for processing images then present it
Open an issue when you need 👍
Osiris is released under the MIT license. See LICENSE for details.