Skip to content

Tangdixi/Osiris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Osiris

Osiris is a image processing library using Metal 2, written in Swift

Features

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

Usage

Osiris prefer dot(.) syntax 🖖

Image rendering

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)	

Filters

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

More

Open an issue when you need 👍

License

Osiris is released under the MIT license. See LICENSE for details.

About

An image processing library using Metal2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published