Skip to content

Instantly share code, notes, and snippets.

View nicolas-miari's full-sized avatar
💪
Livin' La Vida Low Carb

Nicolás Miari nicolas-miari

💪
Livin' La Vida Low Carb
View GitHub Profile
import Foundation
import CoreImage
/**
Based on: https://gist.github.com/SheffieldKevin/566dc048dd6f36716bcd
Updated for Swift 5.5 (Xcode 13)
*/
class ImageDiff {
func compare(leftImage: CGImage, rightImage: CGImage) throws -> Int {