Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mpsimagelaplacian(3) [mojave man page]

MPSImageLaplacian(3)					 MetalPerformanceShaders.framework				      MPSImageLaplacian(3)

NAME
MPSImageLaplacian SYNOPSIS
#import <MPSImageConvolution.h> Inherits MPSUnaryImageKernel. Properties float bias Additional Inherited Members Detailed Description The MPSImageLaplacian is an optimized variant of the MPSImageConvolution filter provided primarily for ease of use. This filter uses an optimized convolution filter with a 3 x 3 kernel with the following weights: [ 0 1 0 1 -4 1 0 1 0 ] The optimized convolution filter used by MPSImageLaplacian can also be used by creating a MPSImageConvolution object with kernelWidth = 3, kernelHeight = 3 and weights as specified above. Property Documentation - bias [read], [write], [nonatomic], [assign] The bias is a value to be added to convolved pixel before it is converted back to the storage format. It can be used to convert negative values into a representable range for a unsigned MTLPixelFormat. For example, many edge detection filters produce results in the range [-k,k]. By scaling the filter weights by 0.5/k and adding 0.5, the results will be in range [0,1] suitable for use with unorm formats. It can be used in combination with renormalization of the filter weights to do video ranging as part of the convolution effect. It can also just be used to increase the brightness of the image. Default value is 0.0f. Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSImageLaplacian(3)

Check Out this Related Man Page

MPSCNNFullyConnectedNode(3)				 MetalPerformanceShaders.framework			       MPSCNNFullyConnectedNode(3)

NAME
MPSCNNFullyConnectedNode SYNOPSIS
#import <MPSNNGraphNodes.h> Inherits MPSCNNConvolutionNode. Instance Methods (nonnull instancetype) - initWithSource:weights: Class Methods (nonnull instancetype) + nodeWithSource:weights: Additional Inherited Members Detailed Description A MPSNNFilterNode representing a MPSCNNFullyConnected kernel Method Documentation - (nonnull instancetype) initWithSource: (MPSNNImageNode *__nonnull) sourceNode(nonnull id< MPSCNNConvolutionDataSource >) weights Init a node representing a MPSCNNFullyConnected kernel Parameters: sourceNode The MPSNNImageNode representing the source MPSImage for the filter weights A pointer to a valid object conforming to the MPSCNNConvolutionDataSource protocol. This object is provided by you to encapsulate storage for convolution weights and biases. Returns: A new MPSNNFilter node for a MPSCNNFullyConnected kernel. Implements MPSCNNConvolutionNode. + (nonnull instancetype) nodeWithSource: (MPSNNImageNode *__nonnull) sourceNode(nonnull id< MPSCNNConvolutionDataSource >) weights Init an autoreleased not representing a MPSCNNFullyConnected kernel Parameters: sourceNode The MPSNNImageNode representing the source MPSImage for the filter weights A pointer to a valid object conforming to the MPSCNNConvolutionDataSource protocol. This object is provided by you to encapsulate storage for convolution weights and biases. Returns: A new MPSNNFilter node for a MPSCNNConvolution kernel. Implements MPSCNNConvolutionNode. Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSCNNFullyConnectedNode(3)
Man Page

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sed decimal issue

Hi I've been trying to add a decimal place to a list of weights in a file but have been having problems with the decimal place for the Kg. I can convert the g weights with this code: sed -i "//s/^/0./" How do I convert the Kg weights into decimal so that 1Kg would be 1.0Kg 250g 500g... (2 Replies)
Discussion started by: mrpugster
2 Replies

2. UNIX for Advanced & Expert Users

File comaprsons for the Huge data files ( around 60G) - Need optimized and teh best way to do this

I have 2 large file (.dat) around 70 g, 12 columns but the data not sorted in both the files.. need your inputs in giving the best optimized method/command to achieve this and redirect the not macthing lines to the thrid file ( diff.dat) File 1 - 15 columns File 2 - 15 columns Data is... (9 Replies)
Discussion started by: kartikirans
9 Replies