Swift 3 conversion error
Hello, I tried to convert HistogramDisplay to Swift 3 but I have a problem with this lines of code:
let histogram = UnsafeMutablePointer<UnsafeMutablePointer<vImagePixelCount>>(mutating: rgba)
vImageHistogramCalculation_ARGB8888(&inBuffer, histogram, UInt32(kvImageNoFlags))
the vImageHistogramCalculation_ARGB8888 method is still same as in Swift 2.3 but I can't properly initialized an optional UnsafeMutablePointer<UnsafeMutablePointer<vImagePixelCount>> method. Some ideas? :)
I received the error:
: Cannot invoke initializer for type 'UnsafeMutablePointer<UnsafeMutablePointer<vImagePixelCount>?>' with an argument list of type '(mutating: [UnsafeMutablePointer<vImagePixelCount>])'
Look on my fix here: https://github.com/genadyo/Filterpedia
Very nice, thank you (:
@aleksanderkania that does not work in the archive mode ...