Interface MPSNNGramMatrixCallback
-
- All Superinterfaces:
NSCoding,NSCopying,NSSecureCoding
public interface MPSNNGramMatrixCallback extends NSSecureCoding, NSCopying
[@protocol] MPSNNGramMatrixCallback MPSNNGramMatrixCallback Defines a callback protocol for @ref MPSNNGramMatrixCalculationNode to set the 'alpha' scaling value dynamically just before encoding the underlying MPSNNGramMatrixCalculation kernel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatalphaForSourceImageDestinationImage(@NotNull MPSImage sourceImage, @NotNull MPSImage destinationImage)Returns the desired alpha scaling value.-
Methods inherited from interface apple.foundation.protocol.NSCoding
encodeWithCoder, initWithCoder
-
Methods inherited from interface apple.foundation.protocol.NSCopying
copyWithZone
-
Methods inherited from interface apple.foundation.protocol.NSSecureCoding
_supportsSecureCoding
-
-
-
-
Method Detail
-
alphaForSourceImageDestinationImage
float alphaForSourceImageDestinationImage(@NotNull @NotNull MPSImage sourceImage, @NotNull @NotNull MPSImage destinationImage)Returns the desired alpha scaling value.- Parameters:
sourceImage- One of the source images in the batch given as a reference for the alpha computation.destinationImage- One of the destination images in the batch given as a reference for the alpha computation.- Returns:
- The desired alpha value.
-
-