Example #1
0
 public MPSImageDilate(IMTLDevice device, nuint kernelWidth, nuint kernelHeight, float[] values)
     : this(device, kernelWidth, kernelHeight, MPSKernel.GetPtr(values, true))
 {
 }
Example #2
0
 public MPSImageThresholdBinary(IMTLDevice device, float thresholdValue, float maximumValue, /*[NullAllowed]*/ float[] transform)
     : this(device, thresholdValue, maximumValue, MPSKernel.GetPtr(transform, false))
 {
 }
Example #3
0
 public MPSImageGaussianPyramid(IMTLDevice device, nuint kernelWidth, nuint kernelHeight, float[] kernelWeights)
     : this(device, kernelWidth, kernelHeight, MPSKernel.GetPtr(kernelWeights, true))
 {
 }
Example #4
0
 public MPSImageConversion(IMTLDevice device, MPSAlphaType srcAlpha, MPSAlphaType destAlpha, nfloat[] backgroundColor, CGColorConversionInfo conversionInfo)
     : this(device, srcAlpha, destAlpha, MPSKernel.GetPtr(backgroundColor, false), conversionInfo)
 {
 }
Example #5
0
 public MPSCnnFullyConnected(IMTLDevice device, MPSCnnConvolutionDescriptor convolutionDescriptor, float[] kernelWeights, float[] biasTerms, MPSCnnConvolutionFlags flags)
     : this(device, convolutionDescriptor, MPSKernel.GetPtr(kernelWeights, true), MPSKernel.GetPtr(biasTerms, false), flags)
 {
 }
Example #6
0
 public MPSImageSobel(IMTLDevice device, float[] transform)
     : this(device, MPSKernel.GetPtr(transform, true))
 {
 }
Example #7
0
 public MPSImageThresholdToZeroInverse(IMTLDevice device, float thresholdValue, /*[NullAllowed]*/ float[] transform)
     : this(device, thresholdValue, MPSKernel.GetPtr(transform, false))
 {
 }