FritzVisionSegmentationResult

@objc(FritzVisionSegmentationResult)
public class FritzVisionSegmentationResult : NSObject, FritzPredictionResult
  • Height of model output array.

    Declaration

    Swift

    @objc
    public let height: Int
  • Width of model output array.

    Declaration

    Swift

    @objc
    public let width: Int
  • Model classes.

    Declaration

    Swift

    @objc
    public let classes: [ModelSegmentationClass]
  • Raw MLMultiArray result from prediction.

    Declaration

    Swift

    @objc
    public let predictionResult: MLMultiArray
  • Gets a height * width length array with each entry the most likely class for that pixel.

    Optionally choose the minimum acceptable confidence score for a class to be chosen.

    Declaration

    Swift

    public func getArrayOfMostLikelyClasses(
      withMinimumConfidenceScore minimumConfidence: Double = 0.0
    ) -> [Int32]

    Parameters

    minimumConfidence

    Minimum confidence score needed for class to be chosen.

    Return Value

    1D-Array of length [height x width].