func semanticImage()

in SemanticSegmentationSample/Common/PostProcessing.swift [40:45]


    func semanticImage(semanticPredictions: MLShapedArray<Int32>) throws -> CIImage {
        guard let image = try SemanticMapToImage.shared?.mapToImage(semanticMap: semanticPredictions, numClasses: numClasses) else {
            throw PostProcessorError.colorConversionError
        }
        return image
    }