public interface MPSNNGramMatrixCallback extends NSSecureCoding, NSCopying
MPSNNGramMatrixCallback Defines a callback protocol for @ref MPSNNGramMatrixCalculationNode to set the 'alpha' scaling value dynamically just before encoding the underlying MPSNNGramMatrixCalculation kernel.
| Modifier and Type | Method and Description |
|---|---|
float |
alphaForSourceImageDestinationImage(MPSImage sourceImage,
MPSImage destinationImage)
Returns the desired alpha scaling value.
|
_supportsSecureCodingencodeWithCoder, initWithCodercopyWithZonefloat alphaForSourceImageDestinationImage(MPSImage sourceImage, MPSImage destinationImage)
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.