Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mpsimagebox(3) [mojave man page]

MPSImageBox(3)						 MetalPerformanceShaders.framework					    MPSImageBox(3)

NAME
MPSImageBox SYNOPSIS
#import <MPSImageConvolution.h> Inherits MPSUnaryImageKernel. Inherited by MPSImageTent. Instance Methods (nonnull instancetype) - initWithDevice:kernelWidth:kernelHeight: (nullable instancetype) - initWithCoder:device: (nonnull instancetype) - initWithDevice: Properties NSUInteger kernelHeight NSUInteger kernelWidth Additional Inherited Members Detailed Description The MPSImageBox convolves an image with given filter of odd width and height. The kernel elements all have equal weight, achieving a blur effect. (Each result is the unweighted average of the surrounding pixels.) This allows for much faster algorithms, espcially for larger blur radii. The box height and width must be odd numbers. The box blur is a separable filter. The implementation is aware of this and will act accordingly to give best performance for multi-dimensional blurs. Method Documentation - (nullable instancetype) initWithCoder: (NSCoder *__nonnull) aDecoder(nonnull id< MTLDevice >) device NSSecureCoding compatability While the standard NSSecureCoding/NSCoding method -initWithCoder: should work, since the file can't know which device your data is allocated on, we have to guess and may guess incorrectly. To avoid that problem, use initWithCoder:device instead. Parameters: aDecoder The NSCoder subclass with your serialized MPSKernel device The MTLDevice on which to make the MPSKernel Returns: A new MPSKernel object, or nil if failure. Reimplemented from MPSUnaryImageKernel. - (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device Standard init with default properties per filter type Parameters: device The device that the filter will be used on. May not be NULL. Returns: a pointer to the newly initialized object. This will fail, returning nil if the device is not supported. Devices must be MTLFeatureSet_iOS_GPUFamily2_v1 or later. Reimplemented from MPSUnaryImageKernel. - (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device(NSUInteger) kernelWidth(NSUInteger) kernelHeight Initialize a filter for a particular kernel size and device Parameters: device The device the filter will run on kernelWidth the width of the kernel. Must be an odd number. kernelHeight the height of the kernel. Must be an odd number. Returns: A valid object or nil, if failure. Property Documentation - kernelHeight [read], [nonatomic], [assign] The height of the filter window. - kernelWidth [read], [nonatomic], [assign] The width of the filter window. Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSImageBox(3)

Check Out this Related Man Page

MPSCNNDilatedPoolingMax(3)				 MetalPerformanceShaders.framework				MPSCNNDilatedPoolingMax(3)

NAME
MPSCNNDilatedPoolingMax SYNOPSIS
#import <MPSCNNPooling.h> Inherits MPSCNNPooling. Instance Methods (nonnull instancetype) - initWithDevice:kernelWidth:kernelHeight:dilationRateX:dilationRateY:strideInPixelsX:strideInPixelsY: (nullable instancetype) - initWithCoder:device: Properties NSUInteger dilationRateX NSUInteger dilationRateY Additional Inherited Members Detailed Description This depends on Metal.framework Specifies the dilated max pooling filter. For each pixel, returns the maximum value of pixels in the kernelWidth x kernelHeight filter region by step size dilationRateX x dilationRateY. Method Documentation - (nullable instancetype) initWithCoder: (NSCoder *__nonnull) aDecoder(nonnull id< MTLDevice >) device NSSecureCoding compatability See MPSKernel.h initWithCoder. Parameters: aDecoder The NSCoder subclass with your serialized MPSCNNDilatedPoolingMax device The MTLDevice on which to make the MPSCNNDilatedPoolingMax Returns: A new MPSCNNDilatedPoolingMax object, or nil if failure. Reimplemented from MPSCNNPooling. - (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device(NSUInteger) kernelWidth(NSUInteger) kernelHeight(NSUInteger) dilationRateX(NSUInteger) dilationRateY(NSUInteger) strideInPixelsX(NSUInteger) strideInPixelsY Initialize a MPSCNNDilatedPoolingMax pooling filter Parameters: device The device the filter will run on kernelWidth The width of the kernel. Can be an odd or even value. kernelHeight The height of the kernel. Can be an odd or even value. dilationRateX The dilation rate in the x dimension. dilationRateY The dilation rate in the y dimension. strideInPixelsX The output stride (downsampling factor) in the x dimension. strideInPixelsY The output stride (downsampling factor) in the y dimension. Returns: A valid MPSCNNDilatedPoolingMax object or nil, if failure. Property Documentation - dilationRateX [read], [nonatomic], [assign] dilationRateX for accessing the image passed in as source - dilationRateY [read], [nonatomic], [assign] dilationRateY for accessing the image passed in as source Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSCNNDilatedPoolingMax(3)
Man Page