Documentation
¶
Overview ¶
Package mpsimage provides a fluent Go API over the macOS MPSImage framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Types ¶
Each base type below lists the concrete types you construct and pass where the base is accepted:
- BinaryImageKernel: ImageArithmetic
- ImageAreaMax: ImageAreaMin
- ImageArithmetic: ImageAdd, ImageDivide, ImageMultiply, ImageSubtract
- ImageBox: ImageTent
- ImageDilate: ImageErode
- ImageLaplacianPyramid: ImageLaplacianPyramidAdd, ImageLaplacianPyramidSubtract
- ImagePyramid: ImageGaussianPyramid, ImageLaplacianPyramid
- ImageReduceUnary: ImageReduceColumnMax, ImageReduceColumnMean, ImageReduceColumnMin, ImageReduceColumnSum, ImageReduceRowMax, ImageReduceRowMean, ImageReduceRowMin, ImageReduceRowSum
- ImageScale: ImageBilinearScale, ImageLanczosScale
- UnaryImageKernel: ImageAreaMax, ImageBox, ImageCanny, ImageConversion, ImageConvolution, ImageDilate, ImageEuclideanDistanceTransform, ImageGaussianBlur, ImageHistogramEqualization, ImageHistogramSpecification, ImageIntegral, ImageIntegralOfSquares, ImageLaplacian, ImageMedian, ImagePyramid, ImageReduceUnary, ImageScale, ImageSobel, ImageStatisticsMean, ImageStatisticsMeanAndVariance, ImageStatisticsMinAndMax, ImageThresholdBinary, ImageThresholdBinaryInverse, ImageThresholdToZero, ImageThresholdToZeroInverse, ImageThresholdTruncate, ImageTranspose
Index ¶
- func MaxKernelDiameter() int
- func MinKernelDiameter() int
- type AlphaType
- type BinaryImageKernel
- func (bik *BinaryImageKernel) ClipRect() metal.MTLRegion
- func (bik *BinaryImageKernel) Description() string
- func (bik *BinaryImageKernel) IsEqual(other obj.Object) bool
- func (bik *BinaryImageKernel) IsKind(className string) bool
- func (bik *BinaryImageKernel) PrimaryOffset() mpscore.MPSOffset
- func (bik *BinaryImageKernel) PrimarySourceRegionForDestinationSize(destinationSize metal.MTLSize) mpscore.MPSRegion
- func (bik *BinaryImageKernel) SecondaryOffset() mpscore.MPSOffset
- func (bik *BinaryImageKernel) SecondarySourceRegionForDestinationSize(destinationSize metal.MTLSize) mpscore.MPSRegion
- func (bik *BinaryImageKernel) String() string
- func (bik *BinaryImageKernel) WithClipRect(clipRect metal.MTLRegion) *BinaryImageKernel
- func (bik *BinaryImageKernel) WithPrimaryOffset(primaryOffset mpscore.MPSOffset) *BinaryImageKernel
- func (bik *BinaryImageKernel) WithSecondaryOffset(secondaryOffset mpscore.MPSOffset) *BinaryImageKernel
- type BinaryImageKernelProvider
- type Clockid
- type CustomKernelIndex
- type DeviceCapsValues
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type FilesecProperty
- type Flag
- type Idtype
- type ImageAdd
- func (ia *ImageAdd) WithBias(bias float32) *ImageAdd
- func (ia *ImageAdd) WithClipRect(clipRect metal.MTLRegion) *ImageAdd
- func (ia *ImageAdd) WithMaximumValue(maximumValue float32) *ImageAdd
- func (ia *ImageAdd) WithMinimumValue(minimumValue float32) *ImageAdd
- func (ia *ImageAdd) WithPrimaryOffset(primaryOffset mpscore.MPSOffset) *ImageAdd
- func (ia *ImageAdd) WithPrimaryScale(primaryScale float32) *ImageAdd
- func (ia *ImageAdd) WithPrimaryStrideInPixels(primaryStrideInPixels metal.MTLSize) *ImageAdd
- func (ia *ImageAdd) WithSecondaryOffset(secondaryOffset mpscore.MPSOffset) *ImageAdd
- func (ia *ImageAdd) WithSecondaryScale(secondaryScale float32) *ImageAdd
- func (ia *ImageAdd) WithSecondaryStrideInPixels(secondaryStrideInPixels metal.MTLSize) *ImageAdd
- type ImageAreaMax
- type ImageAreaMaxProvider
- type ImageAreaMin
- type ImageArithmetic
- func (ia *ImageArithmetic) Bias() float32
- func (ia *ImageArithmetic) MaximumValue() float32
- func (ia *ImageArithmetic) MinimumValue() float32
- func (ia *ImageArithmetic) PrimaryScale() float32
- func (ia *ImageArithmetic) PrimaryStrideInPixels() metal.MTLSize
- func (ia *ImageArithmetic) SecondaryScale() float32
- func (ia *ImageArithmetic) SecondaryStrideInPixels() metal.MTLSize
- func (ia *ImageArithmetic) WithBias(bias float32) *ImageArithmetic
- func (ia *ImageArithmetic) WithClipRect(clipRect metal.MTLRegion) *ImageArithmetic
- func (ia *ImageArithmetic) WithMaximumValue(maximumValue float32) *ImageArithmetic
- func (ia *ImageArithmetic) WithMinimumValue(minimumValue float32) *ImageArithmetic
- func (ia *ImageArithmetic) WithPrimaryOffset(primaryOffset mpscore.MPSOffset) *ImageArithmetic
- func (ia *ImageArithmetic) WithPrimaryScale(primaryScale float32) *ImageArithmetic
- func (ia *ImageArithmetic) WithPrimaryStrideInPixels(primaryStrideInPixels metal.MTLSize) *ImageArithmetic
- func (ia *ImageArithmetic) WithSecondaryOffset(secondaryOffset mpscore.MPSOffset) *ImageArithmetic
- func (ia *ImageArithmetic) WithSecondaryScale(secondaryScale float32) *ImageArithmetic
- func (ia *ImageArithmetic) WithSecondaryStrideInPixels(secondaryStrideInPixels metal.MTLSize) *ImageArithmetic
- type ImageArithmeticProvider
- type ImageBilinearScale
- type ImageBox
- type ImageBoxProvider
- type ImageCanny
- func (ic *ImageCanny) HighThreshold() float32
- func (ic *ImageCanny) LowThreshold() float32
- func (ic *ImageCanny) Sigma() float32
- func (ic *ImageCanny) UseFastMode() bool
- func (ic *ImageCanny) WithClipRect(clipRect metal.MTLRegion) *ImageCanny
- func (ic *ImageCanny) WithHighThreshold(highThreshold float32) *ImageCanny
- func (ic *ImageCanny) WithLowThreshold(lowThreshold float32) *ImageCanny
- func (ic *ImageCanny) WithOffset(offset mpscore.MPSOffset) *ImageCanny
- func (ic *ImageCanny) WithUseFastMode(useFastMode bool) *ImageCanny
- type ImageConversion
- type ImageConvolution
- func (ic *ImageConvolution) Bias() float32
- func (ic *ImageConvolution) KernelHeight() int
- func (ic *ImageConvolution) KernelWidth() int
- func (ic *ImageConvolution) WithBias(bias float32) *ImageConvolution
- func (ic *ImageConvolution) WithClipRect(clipRect metal.MTLRegion) *ImageConvolution
- func (ic *ImageConvolution) WithOffset(offset mpscore.MPSOffset) *ImageConvolution
- type ImageCopyToMatrix
- func (ictm *ImageCopyToMatrix) Description() string
- func (ictm *ImageCopyToMatrix) DestinationMatrixBatchIndex() int
- func (ictm *ImageCopyToMatrix) DestinationMatrixOrigin() metal.MTLOrigin
- func (ictm *ImageCopyToMatrix) IsEqual(other obj.Object) bool
- func (ictm *ImageCopyToMatrix) IsKind(className string) bool
- func (ictm *ImageCopyToMatrix) String() string
- func (ictm *ImageCopyToMatrix) WithDestinationMatrixBatchIndex(destinationMatrixBatchIndex int) *ImageCopyToMatrix
- func (ictm *ImageCopyToMatrix) WithDestinationMatrixOrigin(destinationMatrixOrigin metal.MTLOrigin) *ImageCopyToMatrix
- type ImageDilate
- type ImageDilateProvider
- type ImageDivide
- func (id_ *ImageDivide) WithBias(bias float32) *ImageDivide
- func (id_ *ImageDivide) WithClipRect(clipRect metal.MTLRegion) *ImageDivide
- func (id_ *ImageDivide) WithMaximumValue(maximumValue float32) *ImageDivide
- func (id_ *ImageDivide) WithMinimumValue(minimumValue float32) *ImageDivide
- func (id_ *ImageDivide) WithPrimaryOffset(primaryOffset mpscore.MPSOffset) *ImageDivide
- func (id_ *ImageDivide) WithPrimaryScale(primaryScale float32) *ImageDivide
- func (id_ *ImageDivide) WithPrimaryStrideInPixels(primaryStrideInPixels metal.MTLSize) *ImageDivide
- func (id_ *ImageDivide) WithSecondaryOffset(secondaryOffset mpscore.MPSOffset) *ImageDivide
- func (id_ *ImageDivide) WithSecondaryScale(secondaryScale float32) *ImageDivide
- func (id_ *ImageDivide) WithSecondaryStrideInPixels(secondaryStrideInPixels metal.MTLSize) *ImageDivide
- type ImageEDLines
- func (iel *ImageEDLines) ClipRectSource() metal.MTLRegion
- func (iel *ImageEDLines) Description() string
- func (iel *ImageEDLines) DetailRatio() uint16
- func (iel *ImageEDLines) GaussianSigma() float32
- func (iel *ImageEDLines) GradientThreshold() float32
- func (iel *ImageEDLines) IsEqual(other obj.Object) bool
- func (iel *ImageEDLines) IsKind(className string) bool
- func (iel *ImageEDLines) LineErrorThreshold() float32
- func (iel *ImageEDLines) MaxLines() int
- func (iel *ImageEDLines) MergeLocalityThreshold() float32
- func (iel *ImageEDLines) MinLineLength() uint16
- func (iel *ImageEDLines) String() string
- func (iel *ImageEDLines) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageEDLines
- func (iel *ImageEDLines) WithDetailRatio(detailRatio uint16) *ImageEDLines
- func (iel *ImageEDLines) WithGradientThreshold(gradientThreshold float32) *ImageEDLines
- func (iel *ImageEDLines) WithLineErrorThreshold(lineErrorThreshold float32) *ImageEDLines
- func (iel *ImageEDLines) WithMaxLines(maxLines int) *ImageEDLines
- func (iel *ImageEDLines) WithMergeLocalityThreshold(mergeLocalityThreshold float32) *ImageEDLines
- func (iel *ImageEDLines) WithMinLineLength(minLineLength uint16) *ImageEDLines
- type ImageErode
- type ImageEuclideanDistanceTransform
- func (iedt *ImageEuclideanDistanceTransform) SearchLimitRadius() float32
- func (iedt *ImageEuclideanDistanceTransform) WithClipRect(clipRect metal.MTLRegion) *ImageEuclideanDistanceTransform
- func (iedt *ImageEuclideanDistanceTransform) WithOffset(offset mpscore.MPSOffset) *ImageEuclideanDistanceTransform
- func (iedt *ImageEuclideanDistanceTransform) WithSearchLimitRadius(searchLimitRadius float32) *ImageEuclideanDistanceTransform
- type ImageFindKeypoints
- type ImageGaussianBlur
- type ImageGaussianPyramid
- type ImageGuidedFilter
- func (igf *ImageGuidedFilter) Description() string
- func (igf *ImageGuidedFilter) Epsilon() float32
- func (igf *ImageGuidedFilter) IsEqual(other obj.Object) bool
- func (igf *ImageGuidedFilter) IsKind(className string) bool
- func (igf *ImageGuidedFilter) KernelDiameter() int
- func (igf *ImageGuidedFilter) ReconstructOffset() float32
- func (igf *ImageGuidedFilter) ReconstructScale() float32
- func (igf *ImageGuidedFilter) String() string
- func (igf *ImageGuidedFilter) WithEpsilon(epsilon float32) *ImageGuidedFilter
- func (igf *ImageGuidedFilter) WithReconstructOffset(reconstructOffset float32) *ImageGuidedFilter
- func (igf *ImageGuidedFilter) WithReconstructScale(reconstructScale float32) *ImageGuidedFilter
- type ImageHistogram
- func (ih *ImageHistogram) ClipRectSource() metal.MTLRegion
- func (ih *ImageHistogram) Description() string
- func (ih *ImageHistogram) IsEqual(other obj.Object) bool
- func (ih *ImageHistogram) IsKind(className string) bool
- func (ih *ImageHistogram) MinPixelThresholdValue() unsafe.Pointer
- func (ih *ImageHistogram) String() string
- func (ih *ImageHistogram) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageHistogram
- func (ih *ImageHistogram) WithMinPixelThresholdValue(minPixelThresholdValue unsafe.Pointer) *ImageHistogram
- func (ih *ImageHistogram) WithZeroHistogram(zeroHistogram bool) *ImageHistogram
- func (ih *ImageHistogram) ZeroHistogram() bool
- type ImageHistogramEqualization
- type ImageHistogramSpecification
- type ImageIntegral
- type ImageIntegralOfSquares
- type ImageLanczosScale
- type ImageLaplacian
- type ImageLaplacianPyramid
- func (ilp *ImageLaplacianPyramid) LaplacianBias() float32
- func (ilp *ImageLaplacianPyramid) LaplacianScale() float32
- func (ilp *ImageLaplacianPyramid) WithClipRect(clipRect metal.MTLRegion) *ImageLaplacianPyramid
- func (ilp *ImageLaplacianPyramid) WithLaplacianBias(laplacianBias float32) *ImageLaplacianPyramid
- func (ilp *ImageLaplacianPyramid) WithLaplacianScale(laplacianScale float32) *ImageLaplacianPyramid
- func (ilp *ImageLaplacianPyramid) WithOffset(offset mpscore.MPSOffset) *ImageLaplacianPyramid
- type ImageLaplacianPyramidAdd
- func (ilpa *ImageLaplacianPyramidAdd) WithClipRect(clipRect metal.MTLRegion) *ImageLaplacianPyramidAdd
- func (ilpa *ImageLaplacianPyramidAdd) WithLaplacianBias(laplacianBias float32) *ImageLaplacianPyramidAdd
- func (ilpa *ImageLaplacianPyramidAdd) WithLaplacianScale(laplacianScale float32) *ImageLaplacianPyramidAdd
- func (ilpa *ImageLaplacianPyramidAdd) WithOffset(offset mpscore.MPSOffset) *ImageLaplacianPyramidAdd
- type ImageLaplacianPyramidProvider
- type ImageLaplacianPyramidSubtract
- func (ilps *ImageLaplacianPyramidSubtract) WithClipRect(clipRect metal.MTLRegion) *ImageLaplacianPyramidSubtract
- func (ilps *ImageLaplacianPyramidSubtract) WithLaplacianBias(laplacianBias float32) *ImageLaplacianPyramidSubtract
- func (ilps *ImageLaplacianPyramidSubtract) WithLaplacianScale(laplacianScale float32) *ImageLaplacianPyramidSubtract
- func (ilps *ImageLaplacianPyramidSubtract) WithOffset(offset mpscore.MPSOffset) *ImageLaplacianPyramidSubtract
- type ImageMedian
- type ImageMultiply
- func (im *ImageMultiply) WithBias(bias float32) *ImageMultiply
- func (im *ImageMultiply) WithClipRect(clipRect metal.MTLRegion) *ImageMultiply
- func (im *ImageMultiply) WithMaximumValue(maximumValue float32) *ImageMultiply
- func (im *ImageMultiply) WithMinimumValue(minimumValue float32) *ImageMultiply
- func (im *ImageMultiply) WithPrimaryOffset(primaryOffset mpscore.MPSOffset) *ImageMultiply
- func (im *ImageMultiply) WithPrimaryScale(primaryScale float32) *ImageMultiply
- func (im *ImageMultiply) WithPrimaryStrideInPixels(primaryStrideInPixels metal.MTLSize) *ImageMultiply
- func (im *ImageMultiply) WithSecondaryOffset(secondaryOffset mpscore.MPSOffset) *ImageMultiply
- func (im *ImageMultiply) WithSecondaryScale(secondaryScale float32) *ImageMultiply
- func (im *ImageMultiply) WithSecondaryStrideInPixels(secondaryStrideInPixels metal.MTLSize) *ImageMultiply
- type ImageNormalizedHistogram
- func (inh *ImageNormalizedHistogram) ClipRectSource() metal.MTLRegion
- func (inh *ImageNormalizedHistogram) Description() string
- func (inh *ImageNormalizedHistogram) IsEqual(other obj.Object) bool
- func (inh *ImageNormalizedHistogram) IsKind(className string) bool
- func (inh *ImageNormalizedHistogram) String() string
- func (inh *ImageNormalizedHistogram) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageNormalizedHistogram
- func (inh *ImageNormalizedHistogram) WithZeroHistogram(zeroHistogram bool) *ImageNormalizedHistogram
- func (inh *ImageNormalizedHistogram) ZeroHistogram() bool
- type ImagePyramid
- type ImagePyramidProvider
- type ImageReduceColumnMax
- type ImageReduceColumnMean
- func (ircm *ImageReduceColumnMean) WithClipRect(clipRect metal.MTLRegion) *ImageReduceColumnMean
- func (ircm *ImageReduceColumnMean) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageReduceColumnMean
- func (ircm *ImageReduceColumnMean) WithOffset(offset mpscore.MPSOffset) *ImageReduceColumnMean
- type ImageReduceColumnMin
- type ImageReduceColumnSum
- type ImageReduceRowMax
- type ImageReduceRowMean
- type ImageReduceRowMin
- type ImageReduceRowSum
- type ImageReduceUnary
- func (iru *ImageReduceUnary) ClipRectSource() metal.MTLRegion
- func (iru *ImageReduceUnary) WithClipRect(clipRect metal.MTLRegion) *ImageReduceUnary
- func (iru *ImageReduceUnary) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageReduceUnary
- func (iru *ImageReduceUnary) WithOffset(offset mpscore.MPSOffset) *ImageReduceUnary
- type ImageReduceUnaryProvider
- type ImageScale
- type ImageScaleProvider
- type ImageSobel
- type ImageStatisticsMean
- func (ism *ImageStatisticsMean) ClipRectSource() metal.MTLRegion
- func (ism *ImageStatisticsMean) WithClipRect(clipRect metal.MTLRegion) *ImageStatisticsMean
- func (ism *ImageStatisticsMean) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageStatisticsMean
- func (ism *ImageStatisticsMean) WithOffset(offset mpscore.MPSOffset) *ImageStatisticsMean
- type ImageStatisticsMeanAndVariance
- func (ismav *ImageStatisticsMeanAndVariance) ClipRectSource() metal.MTLRegion
- func (ismav *ImageStatisticsMeanAndVariance) WithClipRect(clipRect metal.MTLRegion) *ImageStatisticsMeanAndVariance
- func (ismav *ImageStatisticsMeanAndVariance) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageStatisticsMeanAndVariance
- func (ismav *ImageStatisticsMeanAndVariance) WithOffset(offset mpscore.MPSOffset) *ImageStatisticsMeanAndVariance
- type ImageStatisticsMinAndMax
- func (ismam *ImageStatisticsMinAndMax) ClipRectSource() metal.MTLRegion
- func (ismam *ImageStatisticsMinAndMax) WithClipRect(clipRect metal.MTLRegion) *ImageStatisticsMinAndMax
- func (ismam *ImageStatisticsMinAndMax) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageStatisticsMinAndMax
- func (ismam *ImageStatisticsMinAndMax) WithOffset(offset mpscore.MPSOffset) *ImageStatisticsMinAndMax
- type ImageSubtract
- func (is *ImageSubtract) WithBias(bias float32) *ImageSubtract
- func (is *ImageSubtract) WithClipRect(clipRect metal.MTLRegion) *ImageSubtract
- func (is *ImageSubtract) WithMaximumValue(maximumValue float32) *ImageSubtract
- func (is *ImageSubtract) WithMinimumValue(minimumValue float32) *ImageSubtract
- func (is *ImageSubtract) WithPrimaryOffset(primaryOffset mpscore.MPSOffset) *ImageSubtract
- func (is *ImageSubtract) WithPrimaryScale(primaryScale float32) *ImageSubtract
- func (is *ImageSubtract) WithPrimaryStrideInPixels(primaryStrideInPixels metal.MTLSize) *ImageSubtract
- func (is *ImageSubtract) WithSecondaryOffset(secondaryOffset mpscore.MPSOffset) *ImageSubtract
- func (is *ImageSubtract) WithSecondaryScale(secondaryScale float32) *ImageSubtract
- func (is *ImageSubtract) WithSecondaryStrideInPixels(secondaryStrideInPixels metal.MTLSize) *ImageSubtract
- type ImageTent
- type ImageThresholdBinary
- type ImageThresholdBinaryInverse
- func (itbi *ImageThresholdBinaryInverse) MaximumValue() float32
- func (itbi *ImageThresholdBinaryInverse) ThresholdValue() float32
- func (itbi *ImageThresholdBinaryInverse) WithClipRect(clipRect metal.MTLRegion) *ImageThresholdBinaryInverse
- func (itbi *ImageThresholdBinaryInverse) WithOffset(offset mpscore.MPSOffset) *ImageThresholdBinaryInverse
- type ImageThresholdToZero
- type ImageThresholdToZeroInverse
- type ImageThresholdTruncate
- type ImageTranspose
- type ImageType
- type IpcInfoObjectType
- type LaunchDataType
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MPSImageHistogramInfo
- type MPSImageKeypointData
- type MPSImageKeypointRangeInfo
- type MPSScaleTransform
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MatrixCopyToImage
- func (mcti *MatrixCopyToImage) Description() string
- func (mcti *MatrixCopyToImage) IsEqual(other obj.Object) bool
- func (mcti *MatrixCopyToImage) IsKind(className string) bool
- func (mcti *MatrixCopyToImage) SourceMatrixBatchIndex() int
- func (mcti *MatrixCopyToImage) SourceMatrixOrigin() metal.MTLOrigin
- func (mcti *MatrixCopyToImage) String() string
- func (mcti *MatrixCopyToImage) WithSourceMatrixBatchIndex(sourceMatrixBatchIndex int) *MatrixCopyToImage
- func (mcti *MatrixCopyToImage) WithSourceMatrixOrigin(sourceMatrixOrigin metal.MTLOrigin) *MatrixCopyToImage
- type MpoFlags
- type OSClockid
- type Perm
- type PtrauthKey
- type QosClass
- type Tag
- type Type
- type UnaryImageKernel
- func (uik *UnaryImageKernel) ClipRect() metal.MTLRegion
- func (uik *UnaryImageKernel) Description() string
- func (uik *UnaryImageKernel) IsEqual(other obj.Object) bool
- func (uik *UnaryImageKernel) IsKind(className string) bool
- func (uik *UnaryImageKernel) Offset() mpscore.MPSOffset
- func (uik *UnaryImageKernel) SourceRegionForDestinationSize(destinationSize metal.MTLSize) mpscore.MPSRegion
- func (uik *UnaryImageKernel) String() string
- func (uik *UnaryImageKernel) WithClipRect(clipRect metal.MTLRegion) *UnaryImageKernel
- func (uik *UnaryImageKernel) WithOffset(offset mpscore.MPSOffset) *UnaryImageKernel
- type UnaryImageKernelProvider
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaxKernelDiameter ¶ added in v0.17.0
func MaxKernelDiameter() int
MaxKernelDiameter returns the maximum diameter in pixels of the filter window supported by the median filter.
func MinKernelDiameter ¶ added in v0.17.0
func MinKernelDiameter() int
MinKernelDiameter returns the minimum diameter in pixels of the filter window supported by the median filter.
Types ¶
type BinaryImageKernel ¶ added in v0.17.0
BinaryImageKernel is an idiomatic wrapper over the Objective-C class MPSBinaryImageKernel.
BinaryImageKernel is an abstract base — you do not construct it directly. Construct one of ImageArithmetic and pass it where a BinaryImageKernel is accepted.
func BinaryImageKernelFromID ¶ added in v0.17.0
func BinaryImageKernelFromID(id objc.ID) *BinaryImageKernel
BinaryImageKernelFromID adopts an existing Objective-C object as a BinaryImageKernel (nil for 0), retaining it and registering a release finalizer.
func (*BinaryImageKernel) ClipRect ¶ added in v0.17.0
func (bik *BinaryImageKernel) ClipRect() metal.MTLRegion
ClipRect returns an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*BinaryImageKernel) Description ¶ added in v0.17.0
func (bik *BinaryImageKernel) Description() string
Description returns the object's -description text.
func (*BinaryImageKernel) IsEqual ¶ added in v0.17.0
func (bik *BinaryImageKernel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*BinaryImageKernel) IsKind ¶ added in v0.17.0
func (bik *BinaryImageKernel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*BinaryImageKernel) PrimaryOffset ¶ added in v0.17.0
func (bik *BinaryImageKernel) PrimaryOffset() mpscore.MPSOffset
PrimaryOffset returns the position of the destination clip rectangle origin relative to the primary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and primary source image align. See Also:
func (*BinaryImageKernel) PrimarySourceRegionForDestinationSize ¶ added in v0.17.0
func (bik *BinaryImageKernel) PrimarySourceRegionForDestinationSize(destinationSize metal.MTLSize) mpscore.MPSRegion
PrimarySourceRegionForDestinationSize primarySourceRegionForDestinationSize: is used to determine which region of the primaryTexture will be read by encodeToCommandBuffer:primaryTexture:secondaryTexture:destinationTexture (and in-place variants) when the filter runs. This information may be needed if the primary source image is broken into multiple textures. The size of the full (untiled) destination image is provided. The region of the full (untiled) source image that will be read is returned. You can then piece together an appropriate texture containing that information for use in your tiled context. The function will consult the MPSBinaryImageKernel primaryOffset and clipRect parameters, to determine the full region read by the function. Other parameters such as kernelHeight and kernelWidth will be consulted as necessary. All properties should be set to intended values prior to calling primarySourceRegionForDestinationSize:. Caution: This function operates using global image coordinates, but -encodeToCommandBuffer:... uses coordinates local to the source and destination image textures. Consequently, the primaryOffset and clipRect attached to this object will need to be updated using a global to local coordinate transform before -encodeToCommandBuffer:... is called. Determine the region of the source texture that will be read for a encode operation
func (*BinaryImageKernel) SecondaryOffset ¶ added in v0.17.0
func (bik *BinaryImageKernel) SecondaryOffset() mpscore.MPSOffset
SecondaryOffset returns the position of the destination clip rectangle origin relative to the secondary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and secondary source image align. See Also:
func (*BinaryImageKernel) SecondarySourceRegionForDestinationSize ¶ added in v0.17.0
func (bik *BinaryImageKernel) SecondarySourceRegionForDestinationSize(destinationSize metal.MTLSize) mpscore.MPSRegion
SecondarySourceRegionForDestinationSize secondarySourceRegionForDestinationSize: is used to determine which region of the sourceTexture will be read by encodeToCommandBuffer:primaryTexture:secondaryTexture:destinationTexture (and in-place variants) when the filter runs. This information may be needed if the secondary source image is broken into multiple textures. The size of the full (untiled) destination image is provided. The region of the full (untiled) secondary source image that will be read is returned. You can then piece together an appropriate texture containing that information for use in your tiled context. The function will consult the MPSBinaryImageKernel secondaryOffset and clipRect parameters, to determine the full region read by the function. Other parameters such as kernelHeight and kernelWidth will be consulted as necessary. All properties should be set to intended values prior to calling secondarySourceRegionForDestinationSize:. Caution: This function operates using global image coordinates, but -encodeToCommandBuffer:... uses coordinates local to the source and destination image textures. Consequently, the secondaryOffset and clipRect attached to this object will need to be updated using a global to local coordinate transform before -encodeToCommandBuffer:... is called. Determine the region of the source texture that will be read for a encode operation
func (*BinaryImageKernel) String ¶ added in v0.17.0
func (bik *BinaryImageKernel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*BinaryImageKernel) WithClipRect ¶ added in v0.17.0
func (bik *BinaryImageKernel) WithClipRect(clipRect metal.MTLRegion) *BinaryImageKernel
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*BinaryImageKernel) WithPrimaryOffset ¶ added in v0.17.0
func (bik *BinaryImageKernel) WithPrimaryOffset(primaryOffset mpscore.MPSOffset) *BinaryImageKernel
WithPrimaryOffset sets the position of the destination clip rectangle origin relative to the primary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and primary source image align. See Also:
func (*BinaryImageKernel) WithSecondaryOffset ¶ added in v0.17.0
func (bik *BinaryImageKernel) WithSecondaryOffset(secondaryOffset mpscore.MPSOffset) *BinaryImageKernel
WithSecondaryOffset sets the position of the destination clip rectangle origin relative to the secondary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and secondary source image align. See Also:
type BinaryImageKernelProvider ¶ added in v0.17.0
type BinaryImageKernelProvider interface {
objref.Object
// contains filtered or unexported methods
}
BinaryImageKernelProvider is accepted wherever a MPSBinaryImageKernel (or one of its subclasses) is expected.
type CustomKernelIndex ¶ added in v0.17.0
type CustomKernelIndex int32
const ( CustomKernelIndexDestIndex CustomKernelIndex = 0 CustomKernelIndexSrc0Index CustomKernelIndex = 0 CustomKernelIndexSrc1Index CustomKernelIndex = 1 CustomKernelIndexSrc2Index CustomKernelIndex = 2 CustomKernelIndexSrc3Index CustomKernelIndex = 3 CustomKernelIndexSrc4Index CustomKernelIndex = 4 CustomKernelIndexUserDataIndex CustomKernelIndex = 30 )
func (CustomKernelIndex) String ¶ added in v0.17.0
func (e CustomKernelIndex) String() string
String returns the CustomKernelIndex constant's name, or its numeric form when the value is not a known constant.
type DeviceCapsValues ¶ added in v0.17.0
type DeviceCapsValues uint32
const ( DeviceCapsNull DeviceCapsValues = 0 DeviceSupportsReadableArrayOfTextures DeviceCapsValues = 1 DeviceSupportsWritableArrayOfTextures DeviceCapsValues = 2 DeviceSupportsReadWriteTextures DeviceCapsValues = 4 DeviceSupportsSimdgroupBarrier DeviceCapsValues = 8 DeviceSupportsQuadShuffle DeviceCapsValues = 16 DeviceSupportsSimdShuffle DeviceCapsValues = 32 DeviceSupportsSimdReduction DeviceCapsValues = 64 DeviceSupportsFloat32Filtering DeviceCapsValues = 128 DeviceSupportsNorm16BicubicFiltering DeviceCapsValues = 256 DeviceSupportsFloat16BicubicFiltering DeviceCapsValues = 512 DeviceIsAppleDevice DeviceCapsValues = 1024 DeviceSupportsSimdShuffleAndFill DeviceCapsValues = 2048 DeviceSupportsBFloat16Arithmetic DeviceCapsValues = 4096 DeviceCapsLast DeviceCapsValues = 8192 )
func (DeviceCapsValues) String ¶ added in v0.17.0
func (e DeviceCapsValues) String() string
String returns the DeviceCapsValues constant's name, or its numeric form when the value is not a known constant.
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type ImageAdd ¶ added in v0.17.0
type ImageAdd struct {
ImageArithmetic
}
ImageAdd is an idiomatic wrapper over the Objective-C class MPSImageAdd.
It embeds ImageArithmetic, promoting that type's methods.
func ImageAddFromID ¶ added in v0.17.0
ImageAddFromID adopts an existing Objective-C object as a ImageAdd (nil for 0), retaining it and registering a release finalizer.
func NewImageAdd ¶ added in v0.17.0
func NewImageAdd() *ImageAdd
NewImageAdd creates a new ImageAdd.
func (*ImageAdd) WithClipRect ¶ added in v0.17.0
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageAdd) WithMaximumValue ¶ added in v0.17.0
WithMaximumValue sets maximumValue is used to clamp the result of an arithmetic operation: result = clamp(result, minimumValue, maximumValue). The default value of maximumValue is FLT_MAX.
func (*ImageAdd) WithMinimumValue ¶ added in v0.17.0
WithMinimumValue sets minimumValue is to clamp the result of an arithmetic operation: result = clamp(result, minimumValue, maximumValue). The default value of minimumValue is -FLT_MAX.
func (*ImageAdd) WithPrimaryOffset ¶ added in v0.17.0
WithPrimaryOffset sets the position of the destination clip rectangle origin relative to the primary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and primary source image align. See Also:
func (*ImageAdd) WithPrimaryScale ¶ added in v0.17.0
WithPrimaryScale sets the primary scale.
func (*ImageAdd) WithPrimaryStrideInPixels ¶ added in v0.17.0
WithPrimaryStrideInPixels sets the secondarySource stride in the x, y, and z dimensions. The only supported values are 0 or 1. The default value for each dimension is 1.
func (*ImageAdd) WithSecondaryOffset ¶ added in v0.17.0
WithSecondaryOffset sets the position of the destination clip rectangle origin relative to the secondary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and secondary source image align. See Also:
func (*ImageAdd) WithSecondaryScale ¶ added in v0.17.0
WithSecondaryScale sets the secondary scale.
func (*ImageAdd) WithSecondaryStrideInPixels ¶ added in v0.17.0
WithSecondaryStrideInPixels sets the secondarySource stride in the x, y, and z dimensions. The only supported values are 0 or 1. The default value for each dimension is 1.
type ImageAreaMax ¶ added in v0.17.0
type ImageAreaMax struct {
UnaryImageKernel
}
ImageAreaMax is an idiomatic wrapper over the Objective-C class MPSImageAreaMax.
ImageAreaMax is an abstract base — you do not construct it directly. Construct one of ImageAreaMin and pass it where a ImageAreaMax is accepted.
func ImageAreaMaxFromID ¶ added in v0.17.0
func ImageAreaMaxFromID(id objc.ID) *ImageAreaMax
ImageAreaMaxFromID adopts an existing Objective-C object as a ImageAreaMax (nil for 0), retaining it and registering a release finalizer.
func (*ImageAreaMax) KernelHeight ¶ added in v0.17.0
func (iam *ImageAreaMax) KernelHeight() int
KernelHeight returns the height of the filter window. Must be an odd number.
func (*ImageAreaMax) KernelWidth ¶ added in v0.17.0
func (iam *ImageAreaMax) KernelWidth() int
KernelWidth returns the width of the filter window. Must be an odd number.
func (*ImageAreaMax) WithClipRect ¶ added in v0.17.0
func (iam *ImageAreaMax) WithClipRect(clipRect metal.MTLRegion) *ImageAreaMax
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageAreaMax) WithOffset ¶ added in v0.17.0
func (iam *ImageAreaMax) WithOffset(offset mpscore.MPSOffset) *ImageAreaMax
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageAreaMaxProvider ¶ added in v0.17.0
ImageAreaMaxProvider is accepted wherever a MPSImageAreaMax (or one of its subclasses) is expected.
type ImageAreaMin ¶ added in v0.17.0
type ImageAreaMin struct {
ImageAreaMax
}
ImageAreaMin is an idiomatic wrapper over the Objective-C class MPSImageAreaMin.
It embeds ImageAreaMax, promoting that type's methods.
func ImageAreaMinFromID ¶ added in v0.17.0
func ImageAreaMinFromID(id objc.ID) *ImageAreaMin
ImageAreaMinFromID adopts an existing Objective-C object as a ImageAreaMin (nil for 0), retaining it and registering a release finalizer.
func NewImageAreaMin ¶ added in v0.17.0
func NewImageAreaMin() *ImageAreaMin
NewImageAreaMin creates a new ImageAreaMin.
func (*ImageAreaMin) WithClipRect ¶ added in v0.17.0
func (iam *ImageAreaMin) WithClipRect(clipRect metal.MTLRegion) *ImageAreaMin
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageAreaMin) WithOffset ¶ added in v0.17.0
func (iam *ImageAreaMin) WithOffset(offset mpscore.MPSOffset) *ImageAreaMin
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageArithmetic ¶ added in v0.17.0
type ImageArithmetic struct {
BinaryImageKernel
}
ImageArithmetic is an idiomatic wrapper over the Objective-C class MPSImageArithmetic.
ImageArithmetic is an abstract base — you do not construct it directly. Construct one of ImageAdd, ImageDivide, ImageMultiply, ImageSubtract and pass it where a ImageArithmetic is accepted.
func ImageArithmeticFromID ¶ added in v0.17.0
func ImageArithmeticFromID(id objc.ID) *ImageArithmetic
ImageArithmeticFromID adopts an existing Objective-C object as a ImageArithmetic (nil for 0), retaining it and registering a release finalizer.
func (*ImageArithmetic) Bias ¶ added in v0.17.0
func (ia *ImageArithmetic) Bias() float32
Bias returns the bias.
func (*ImageArithmetic) MaximumValue ¶ added in v0.17.0
func (ia *ImageArithmetic) MaximumValue() float32
MaximumValue returns maximumValue is used to clamp the result of an arithmetic operation: result = clamp(result, minimumValue, maximumValue). The default value of maximumValue is FLT_MAX.
func (*ImageArithmetic) MinimumValue ¶ added in v0.17.0
func (ia *ImageArithmetic) MinimumValue() float32
MinimumValue returns minimumValue is to clamp the result of an arithmetic operation: result = clamp(result, minimumValue, maximumValue). The default value of minimumValue is -FLT_MAX.
func (*ImageArithmetic) PrimaryScale ¶ added in v0.17.0
func (ia *ImageArithmetic) PrimaryScale() float32
PrimaryScale returns the primary scale.
func (*ImageArithmetic) PrimaryStrideInPixels ¶ added in v0.17.0
func (ia *ImageArithmetic) PrimaryStrideInPixels() metal.MTLSize
PrimaryStrideInPixels returns the secondarySource stride in the x, y, and z dimensions. The only supported values are 0 or 1. The default value for each dimension is 1.
func (*ImageArithmetic) SecondaryScale ¶ added in v0.17.0
func (ia *ImageArithmetic) SecondaryScale() float32
SecondaryScale returns the secondary scale.
func (*ImageArithmetic) SecondaryStrideInPixels ¶ added in v0.17.0
func (ia *ImageArithmetic) SecondaryStrideInPixels() metal.MTLSize
SecondaryStrideInPixels returns the secondarySource stride in the x, y, and z dimensions. The only supported values are 0 or 1. The default value for each dimension is 1.
func (*ImageArithmetic) WithBias ¶ added in v0.17.0
func (ia *ImageArithmetic) WithBias(bias float32) *ImageArithmetic
WithBias sets the bias.
func (*ImageArithmetic) WithClipRect ¶ added in v0.17.0
func (ia *ImageArithmetic) WithClipRect(clipRect metal.MTLRegion) *ImageArithmetic
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageArithmetic) WithMaximumValue ¶ added in v0.17.0
func (ia *ImageArithmetic) WithMaximumValue(maximumValue float32) *ImageArithmetic
WithMaximumValue sets maximumValue is used to clamp the result of an arithmetic operation: result = clamp(result, minimumValue, maximumValue). The default value of maximumValue is FLT_MAX.
func (*ImageArithmetic) WithMinimumValue ¶ added in v0.17.0
func (ia *ImageArithmetic) WithMinimumValue(minimumValue float32) *ImageArithmetic
WithMinimumValue sets minimumValue is to clamp the result of an arithmetic operation: result = clamp(result, minimumValue, maximumValue). The default value of minimumValue is -FLT_MAX.
func (*ImageArithmetic) WithPrimaryOffset ¶ added in v0.17.0
func (ia *ImageArithmetic) WithPrimaryOffset(primaryOffset mpscore.MPSOffset) *ImageArithmetic
WithPrimaryOffset sets the position of the destination clip rectangle origin relative to the primary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and primary source image align. See Also:
func (*ImageArithmetic) WithPrimaryScale ¶ added in v0.17.0
func (ia *ImageArithmetic) WithPrimaryScale(primaryScale float32) *ImageArithmetic
WithPrimaryScale sets the primary scale.
func (*ImageArithmetic) WithPrimaryStrideInPixels ¶ added in v0.17.0
func (ia *ImageArithmetic) WithPrimaryStrideInPixels(primaryStrideInPixels metal.MTLSize) *ImageArithmetic
WithPrimaryStrideInPixels sets the secondarySource stride in the x, y, and z dimensions. The only supported values are 0 or 1. The default value for each dimension is 1.
func (*ImageArithmetic) WithSecondaryOffset ¶ added in v0.17.0
func (ia *ImageArithmetic) WithSecondaryOffset(secondaryOffset mpscore.MPSOffset) *ImageArithmetic
WithSecondaryOffset sets the position of the destination clip rectangle origin relative to the secondary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and secondary source image align. See Also:
func (*ImageArithmetic) WithSecondaryScale ¶ added in v0.17.0
func (ia *ImageArithmetic) WithSecondaryScale(secondaryScale float32) *ImageArithmetic
WithSecondaryScale sets the secondary scale.
func (*ImageArithmetic) WithSecondaryStrideInPixels ¶ added in v0.17.0
func (ia *ImageArithmetic) WithSecondaryStrideInPixels(secondaryStrideInPixels metal.MTLSize) *ImageArithmetic
WithSecondaryStrideInPixels sets the secondarySource stride in the x, y, and z dimensions. The only supported values are 0 or 1. The default value for each dimension is 1.
type ImageArithmeticProvider ¶ added in v0.17.0
ImageArithmeticProvider is accepted wherever a MPSImageArithmetic (or one of its subclasses) is expected.
type ImageBilinearScale ¶ added in v0.17.0
type ImageBilinearScale struct {
ImageScale
}
ImageBilinearScale is an idiomatic wrapper over the Objective-C class MPSImageBilinearScale.
It embeds ImageScale, promoting that type's methods.
func ImageBilinearScaleFromID ¶ added in v0.17.0
func ImageBilinearScaleFromID(id objc.ID) *ImageBilinearScale
ImageBilinearScaleFromID adopts an existing Objective-C object as a ImageBilinearScale (nil for 0), retaining it and registering a release finalizer.
func NewImageBilinearScale ¶ added in v0.17.0
func NewImageBilinearScale() *ImageBilinearScale
NewImageBilinearScale creates a new ImageBilinearScale.
func (*ImageBilinearScale) WithClipRect ¶ added in v0.17.0
func (ibs *ImageBilinearScale) WithClipRect(clipRect metal.MTLRegion) *ImageBilinearScale
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageBilinearScale) WithOffset ¶ added in v0.17.0
func (ibs *ImageBilinearScale) WithOffset(offset mpscore.MPSOffset) *ImageBilinearScale
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
func (*ImageBilinearScale) WithScaleTransform ¶ added in v0.18.0
func (ibs *ImageBilinearScale) WithScaleTransform(scaleTransform *MPSScaleTransform) *ImageBilinearScale
WithScaleTransform sets an optional transform that describes how to scale and translate the source image If the scaleTransform is NULL, then any image scaling factor such as MPSImageLanczosScale will rescale the image so that the source image fits exactly into the destination texture. If the transform is not NULL, then the transform is used for determining how to map the source image to the destination. Default: NULL When the scaleTransform is set to non-NULL, the values pointed to by the new scaleTransform are copied to object storage, and the pointer is updated to point to internal storage. Do not attempt to free it. You may free your copy of the MPSScaleTransform as soon as the property set operation is complete. When calculating a scaleTransform, use the limits of the bounding box for the intended source region of interest and the destination clipRect. Adjustments for pixel center coordinates are handled internally to the function. For example, the scale transform to convert the entire source image to the entire destination image size (clipRect = MPSRectNoClip) would be:
type ImageBox ¶ added in v0.17.0
type ImageBox struct {
UnaryImageKernel
}
ImageBox is an idiomatic wrapper over the Objective-C class MPSImageBox.
ImageBox is an abstract base — you do not construct it directly. Construct one of ImageTent and pass it where a ImageBox is accepted.
func ImageBoxFromID ¶ added in v0.17.0
ImageBoxFromID adopts an existing Objective-C object as a ImageBox (nil for 0), retaining it and registering a release finalizer.
func (*ImageBox) KernelHeight ¶ added in v0.17.0
KernelHeight returns the height of the filter window.
func (*ImageBox) KernelWidth ¶ added in v0.17.0
KernelWidth returns the width of the filter window.
func (*ImageBox) WithClipRect ¶ added in v0.17.0
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageBox) WithOffset ¶ added in v0.17.0
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageBoxProvider ¶ added in v0.17.0
ImageBoxProvider is accepted wherever a MPSImageBox (or one of its subclasses) is expected.
type ImageCanny ¶ added in v0.17.0
type ImageCanny struct {
UnaryImageKernel
}
ImageCanny is an idiomatic wrapper over the Objective-C class MPSImageCanny.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageCannyFromID ¶ added in v0.17.0
func ImageCannyFromID(id objc.ID) *ImageCanny
ImageCannyFromID adopts an existing Objective-C object as a ImageCanny (nil for 0), retaining it and registering a release finalizer.
func NewImageCanny ¶ added in v0.17.0
func NewImageCanny() *ImageCanny
NewImageCanny creates a new ImageCanny.
func (*ImageCanny) HighThreshold ¶ added in v0.17.0
func (ic *ImageCanny) HighThreshold() float32
HighThreshold returns read-write value used to set the high threshold for double thresholding, value is normalized. Default is 0.4
func (*ImageCanny) LowThreshold ¶ added in v0.17.0
func (ic *ImageCanny) LowThreshold() float32
LowThreshold returns read-write value used to set the low threshold for double thresholding, value is normalized. Default is 0.2
func (*ImageCanny) Sigma ¶ added in v0.17.0
func (ic *ImageCanny) Sigma() float32
Sigma returns read-only sigma value used in performing Gaussian blur of the image
func (*ImageCanny) UseFastMode ¶ added in v0.17.0
func (ic *ImageCanny) UseFastMode() bool
UseFastMode reports whether read-write value used to change algorithm to an approximation of the true Canny Edge detection Algorithm. When true, a limit is placed on how far a single strong edge can extend. The result will be similar to a true output but some edges may terminate early, resulting in minor differences for cases with long, weak edges. The performance for the approximate canny implementation is improved and should provide similar enough results for most cases. Extra tuning of the high and low thresholds as well as sigma may help achieve a more similar output in this mode. Default is true
func (*ImageCanny) WithClipRect ¶ added in v0.17.0
func (ic *ImageCanny) WithClipRect(clipRect metal.MTLRegion) *ImageCanny
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageCanny) WithHighThreshold ¶ added in v0.17.0
func (ic *ImageCanny) WithHighThreshold(highThreshold float32) *ImageCanny
WithHighThreshold sets read-write value used to set the high threshold for double thresholding, value is normalized. Default is 0.4
func (*ImageCanny) WithLowThreshold ¶ added in v0.17.0
func (ic *ImageCanny) WithLowThreshold(lowThreshold float32) *ImageCanny
WithLowThreshold sets read-write value used to set the low threshold for double thresholding, value is normalized. Default is 0.2
func (*ImageCanny) WithOffset ¶ added in v0.17.0
func (ic *ImageCanny) WithOffset(offset mpscore.MPSOffset) *ImageCanny
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
func (*ImageCanny) WithUseFastMode ¶ added in v0.17.0
func (ic *ImageCanny) WithUseFastMode(useFastMode bool) *ImageCanny
WithUseFastMode sets read-write value used to change algorithm to an approximation of the true Canny Edge detection Algorithm. When true, a limit is placed on how far a single strong edge can extend. The result will be similar to a true output but some edges may terminate early, resulting in minor differences for cases with long, weak edges. The performance for the approximate canny implementation is improved and should provide similar enough results for most cases. Extra tuning of the high and low thresholds as well as sigma may help achieve a more similar output in this mode. Default is YES
type ImageConversion ¶ added in v0.17.0
type ImageConversion struct {
UnaryImageKernel
}
ImageConversion is an idiomatic wrapper over the Objective-C class MPSImageConversion.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageConversionFromID ¶ added in v0.17.0
func ImageConversionFromID(id objc.ID) *ImageConversion
ImageConversionFromID adopts an existing Objective-C object as a ImageConversion (nil for 0), retaining it and registering a release finalizer.
func NewImageConversion ¶ added in v0.17.0
func NewImageConversion() *ImageConversion
NewImageConversion creates a new ImageConversion.
func (*ImageConversion) DestinationAlpha ¶ added in v0.17.0
func (ic *ImageConversion) DestinationAlpha() AlphaType
DestinationAlpha returns premultiplication description for the destinationAlpha texture Colorspace conversion operations produce non-premultiplied data. Use this property to tag cases where premultiplied results are required. If MPSPixelAlpha_AlphaIsOne is used, the alpha channel will be set to 1. Default: MPSPixelAlpha_AlphaIsOne
func (*ImageConversion) SourceAlpha ¶ added in v0.17.0
func (ic *ImageConversion) SourceAlpha() AlphaType
SourceAlpha returns premultiplication description for the source texture Most colorspace conversion operations can not work directly on premultiplied data. Use this property to tag premultiplied data so that the source texture can be unpremultiplied prior to application of these transforms. Default: MPSPixelAlpha_AlphaIsOne
func (*ImageConversion) WithClipRect ¶ added in v0.17.0
func (ic *ImageConversion) WithClipRect(clipRect metal.MTLRegion) *ImageConversion
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageConversion) WithOffset ¶ added in v0.17.0
func (ic *ImageConversion) WithOffset(offset mpscore.MPSOffset) *ImageConversion
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageConvolution ¶ added in v0.17.0
type ImageConvolution struct {
UnaryImageKernel
}
ImageConvolution is an idiomatic wrapper over the Objective-C class MPSImageConvolution.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageConvolutionFromID ¶ added in v0.17.0
func ImageConvolutionFromID(id objc.ID) *ImageConvolution
ImageConvolutionFromID adopts an existing Objective-C object as a ImageConvolution (nil for 0), retaining it and registering a release finalizer.
func NewImageConvolution ¶ added in v0.17.0
func NewImageConvolution() *ImageConvolution
NewImageConvolution creates a new ImageConvolution.
func (*ImageConvolution) Bias ¶ added in v0.17.0
func (ic *ImageConvolution) Bias() float32
Bias returns 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.
func (*ImageConvolution) KernelHeight ¶ added in v0.17.0
func (ic *ImageConvolution) KernelHeight() int
KernelHeight returns the height of the filter window. Must be an odd number.
func (*ImageConvolution) KernelWidth ¶ added in v0.17.0
func (ic *ImageConvolution) KernelWidth() int
KernelWidth returns the width of the filter window. Must be an odd number.
func (*ImageConvolution) WithBias ¶ added in v0.17.0
func (ic *ImageConvolution) WithBias(bias float32) *ImageConvolution
WithBias sets 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.
func (*ImageConvolution) WithClipRect ¶ added in v0.17.0
func (ic *ImageConvolution) WithClipRect(clipRect metal.MTLRegion) *ImageConvolution
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageConvolution) WithOffset ¶ added in v0.17.0
func (ic *ImageConvolution) WithOffset(offset mpscore.MPSOffset) *ImageConvolution
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageCopyToMatrix ¶ added in v0.17.0
ImageCopyToMatrix is an idiomatic wrapper over the Objective-C class MPSImageCopyToMatrix.
func ImageCopyToMatrixFromID ¶ added in v0.17.0
func ImageCopyToMatrixFromID(id objc.ID) *ImageCopyToMatrix
ImageCopyToMatrixFromID adopts an existing Objective-C object as a ImageCopyToMatrix (nil for 0), retaining it and registering a release finalizer.
func NewImageCopyToMatrix ¶ added in v0.17.0
func NewImageCopyToMatrix() *ImageCopyToMatrix
NewImageCopyToMatrix creates a new ImageCopyToMatrix.
func (*ImageCopyToMatrix) Description ¶ added in v0.17.0
func (ictm *ImageCopyToMatrix) Description() string
Description returns the object's -description text.
func (*ImageCopyToMatrix) DestinationMatrixBatchIndex ¶ added in v0.17.0
func (ictm *ImageCopyToMatrix) DestinationMatrixBatchIndex() int
DestinationMatrixBatchIndex returns the index of the destination matrix in the batch. This property is modifiable and defaults to 0 at initialization time.
func (*ImageCopyToMatrix) DestinationMatrixOrigin ¶ added in v0.17.0
func (ictm *ImageCopyToMatrix) DestinationMatrixOrigin() metal.MTLOrigin
DestinationMatrixOrigin returns the origin, relative to [0, 0] in the destination matrix, at which to start writing results. This property is modifiable and defaults to [0, 0] at initialization time. If a different origin is desired then this should be modified prior to encoding the kernel. The z value must be 0.
func (*ImageCopyToMatrix) IsEqual ¶ added in v0.17.0
func (ictm *ImageCopyToMatrix) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ImageCopyToMatrix) IsKind ¶ added in v0.17.0
func (ictm *ImageCopyToMatrix) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ImageCopyToMatrix) String ¶ added in v0.17.0
func (ictm *ImageCopyToMatrix) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ImageCopyToMatrix) WithDestinationMatrixBatchIndex ¶ added in v0.17.0
func (ictm *ImageCopyToMatrix) WithDestinationMatrixBatchIndex(destinationMatrixBatchIndex int) *ImageCopyToMatrix
WithDestinationMatrixBatchIndex sets the index of the destination matrix in the batch. This property is modifiable and defaults to 0 at initialization time.
func (*ImageCopyToMatrix) WithDestinationMatrixOrigin ¶ added in v0.17.0
func (ictm *ImageCopyToMatrix) WithDestinationMatrixOrigin(destinationMatrixOrigin metal.MTLOrigin) *ImageCopyToMatrix
WithDestinationMatrixOrigin sets the origin, relative to [0, 0] in the destination matrix, at which to start writing results. This property is modifiable and defaults to [0, 0] at initialization time. If a different origin is desired then this should be modified prior to encoding the kernel. The z value must be 0.
type ImageDilate ¶ added in v0.17.0
type ImageDilate struct {
UnaryImageKernel
}
ImageDilate is an idiomatic wrapper over the Objective-C class MPSImageDilate.
ImageDilate is an abstract base — you do not construct it directly. Construct one of ImageErode and pass it where a ImageDilate is accepted.
func ImageDilateFromID ¶ added in v0.17.0
func ImageDilateFromID(id objc.ID) *ImageDilate
ImageDilateFromID adopts an existing Objective-C object as a ImageDilate (nil for 0), retaining it and registering a release finalizer.
func (*ImageDilate) KernelHeight ¶ added in v0.17.0
func (id_ *ImageDilate) KernelHeight() int
KernelHeight returns the height of the filter window. Must be an odd number.
func (*ImageDilate) KernelWidth ¶ added in v0.17.0
func (id_ *ImageDilate) KernelWidth() int
KernelWidth returns the width of the filter window. Must be an odd number.
func (*ImageDilate) WithClipRect ¶ added in v0.17.0
func (id_ *ImageDilate) WithClipRect(clipRect metal.MTLRegion) *ImageDilate
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageDilate) WithOffset ¶ added in v0.17.0
func (id_ *ImageDilate) WithOffset(offset mpscore.MPSOffset) *ImageDilate
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageDilateProvider ¶ added in v0.17.0
ImageDilateProvider is accepted wherever a MPSImageDilate (or one of its subclasses) is expected.
type ImageDivide ¶ added in v0.17.0
type ImageDivide struct {
ImageArithmetic
}
ImageDivide is an idiomatic wrapper over the Objective-C class MPSImageDivide.
It embeds ImageArithmetic, promoting that type's methods.
func ImageDivideFromID ¶ added in v0.17.0
func ImageDivideFromID(id objc.ID) *ImageDivide
ImageDivideFromID adopts an existing Objective-C object as a ImageDivide (nil for 0), retaining it and registering a release finalizer.
func NewImageDivide ¶ added in v0.17.0
func NewImageDivide() *ImageDivide
NewImageDivide creates a new ImageDivide.
func (*ImageDivide) WithBias ¶ added in v0.17.0
func (id_ *ImageDivide) WithBias(bias float32) *ImageDivide
WithBias sets the bias.
func (*ImageDivide) WithClipRect ¶ added in v0.17.0
func (id_ *ImageDivide) WithClipRect(clipRect metal.MTLRegion) *ImageDivide
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageDivide) WithMaximumValue ¶ added in v0.17.0
func (id_ *ImageDivide) WithMaximumValue(maximumValue float32) *ImageDivide
WithMaximumValue sets maximumValue is used to clamp the result of an arithmetic operation: result = clamp(result, minimumValue, maximumValue). The default value of maximumValue is FLT_MAX.
func (*ImageDivide) WithMinimumValue ¶ added in v0.17.0
func (id_ *ImageDivide) WithMinimumValue(minimumValue float32) *ImageDivide
WithMinimumValue sets minimumValue is to clamp the result of an arithmetic operation: result = clamp(result, minimumValue, maximumValue). The default value of minimumValue is -FLT_MAX.
func (*ImageDivide) WithPrimaryOffset ¶ added in v0.17.0
func (id_ *ImageDivide) WithPrimaryOffset(primaryOffset mpscore.MPSOffset) *ImageDivide
WithPrimaryOffset sets the position of the destination clip rectangle origin relative to the primary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and primary source image align. See Also:
func (*ImageDivide) WithPrimaryScale ¶ added in v0.17.0
func (id_ *ImageDivide) WithPrimaryScale(primaryScale float32) *ImageDivide
WithPrimaryScale sets the primary scale.
func (*ImageDivide) WithPrimaryStrideInPixels ¶ added in v0.17.0
func (id_ *ImageDivide) WithPrimaryStrideInPixels(primaryStrideInPixels metal.MTLSize) *ImageDivide
WithPrimaryStrideInPixels sets the secondarySource stride in the x, y, and z dimensions. The only supported values are 0 or 1. The default value for each dimension is 1.
func (*ImageDivide) WithSecondaryOffset ¶ added in v0.17.0
func (id_ *ImageDivide) WithSecondaryOffset(secondaryOffset mpscore.MPSOffset) *ImageDivide
WithSecondaryOffset sets the position of the destination clip rectangle origin relative to the secondary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and secondary source image align. See Also:
func (*ImageDivide) WithSecondaryScale ¶ added in v0.17.0
func (id_ *ImageDivide) WithSecondaryScale(secondaryScale float32) *ImageDivide
WithSecondaryScale sets the secondary scale.
func (*ImageDivide) WithSecondaryStrideInPixels ¶ added in v0.17.0
func (id_ *ImageDivide) WithSecondaryStrideInPixels(secondaryStrideInPixels metal.MTLSize) *ImageDivide
WithSecondaryStrideInPixels sets the secondarySource stride in the x, y, and z dimensions. The only supported values are 0 or 1. The default value for each dimension is 1.
type ImageEDLines ¶ added in v0.17.0
ImageEDLines is an idiomatic wrapper over the Objective-C class MPSImageEDLines.
func ImageEDLinesFromID ¶ added in v0.17.0
func ImageEDLinesFromID(id objc.ID) *ImageEDLines
ImageEDLinesFromID adopts an existing Objective-C object as a ImageEDLines (nil for 0), retaining it and registering a release finalizer.
func NewImageEDLines ¶ added in v0.17.0
func NewImageEDLines() *ImageEDLines
NewImageEDLines creates a new ImageEDLines.
func (*ImageEDLines) ClipRectSource ¶ added in v0.17.0
func (iel *ImageEDLines) ClipRectSource() metal.MTLRegion
ClipRectSource returns the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture.
func (*ImageEDLines) Description ¶ added in v0.17.0
func (iel *ImageEDLines) Description() string
Description returns the object's -description text.
func (*ImageEDLines) DetailRatio ¶ added in v0.17.0
func (iel *ImageEDLines) DetailRatio() uint16
DetailRatio returns read-write value used to set the detailRatio to use in the EDLines algorithm Default is 32
func (*ImageEDLines) GaussianSigma ¶ added in v0.17.0
func (iel *ImageEDLines) GaussianSigma() float32
GaussianSigma returns read-only sigma value used in performing Gaussian blur of the image. Default is 2.0
func (*ImageEDLines) GradientThreshold ¶ added in v0.17.0
func (iel *ImageEDLines) GradientThreshold() float32
GradientThreshold returns read-write value used to set the threshold for a pixel to be considered an edge Default is 0.2
func (*ImageEDLines) IsEqual ¶ added in v0.17.0
func (iel *ImageEDLines) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ImageEDLines) IsKind ¶ added in v0.17.0
func (iel *ImageEDLines) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ImageEDLines) LineErrorThreshold ¶ added in v0.17.0
func (iel *ImageEDLines) LineErrorThreshold() float32
LineErrorThreshold returns read-write value used to set the limit on error for a line segment relative to the edge it fits Default is 0.05
func (*ImageEDLines) MaxLines ¶ added in v0.17.0
func (iel *ImageEDLines) MaxLines() int
MaxLines returns read-write value used to set the max number of line segments to be written out. The endpointBuffer at encode must be >= maxLines * 4 * sizeof(unsigned short) + sizeof(uint32_t). Default is 256
func (*ImageEDLines) MergeLocalityThreshold ¶ added in v0.17.0
func (iel *ImageEDLines) MergeLocalityThreshold() float32
MergeLocalityThreshold returns read-write value used to set how many pixels apart two lines can deviate spatially and still be merged. Default is 0.0025
func (*ImageEDLines) MinLineLength ¶ added in v0.17.0
func (iel *ImageEDLines) MinLineLength() uint16
MinLineLength returns read-write value used to set the minimum length of a line segment. Default is 32
func (*ImageEDLines) String ¶ added in v0.17.0
func (iel *ImageEDLines) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ImageEDLines) WithClipRectSource ¶ added in v0.17.0
func (iel *ImageEDLines) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageEDLines
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture.
func (*ImageEDLines) WithDetailRatio ¶ added in v0.17.0
func (iel *ImageEDLines) WithDetailRatio(detailRatio uint16) *ImageEDLines
WithDetailRatio sets read-write value used to set the detailRatio to use in the EDLines algorithm Default is 32
func (*ImageEDLines) WithGradientThreshold ¶ added in v0.17.0
func (iel *ImageEDLines) WithGradientThreshold(gradientThreshold float32) *ImageEDLines
WithGradientThreshold sets read-write value used to set the threshold for a pixel to be considered an edge Default is 0.2
func (*ImageEDLines) WithLineErrorThreshold ¶ added in v0.17.0
func (iel *ImageEDLines) WithLineErrorThreshold(lineErrorThreshold float32) *ImageEDLines
WithLineErrorThreshold sets read-write value used to set the limit on error for a line segment relative to the edge it fits Default is 0.05
func (*ImageEDLines) WithMaxLines ¶ added in v0.17.0
func (iel *ImageEDLines) WithMaxLines(maxLines int) *ImageEDLines
WithMaxLines sets read-write value used to set the max number of line segments to be written out. The endpointBuffer at encode must be >= maxLines * 4 * sizeof(unsigned short) + sizeof(uint32_t). Default is 256
func (*ImageEDLines) WithMergeLocalityThreshold ¶ added in v0.17.0
func (iel *ImageEDLines) WithMergeLocalityThreshold(mergeLocalityThreshold float32) *ImageEDLines
WithMergeLocalityThreshold sets read-write value used to set how many pixels apart two lines can deviate spatially and still be merged. Default is 0.0025
func (*ImageEDLines) WithMinLineLength ¶ added in v0.17.0
func (iel *ImageEDLines) WithMinLineLength(minLineLength uint16) *ImageEDLines
WithMinLineLength sets read-write value used to set the minimum length of a line segment. Default is 32
type ImageErode ¶ added in v0.17.0
type ImageErode struct {
ImageDilate
}
ImageErode is an idiomatic wrapper over the Objective-C class MPSImageErode.
It embeds ImageDilate, promoting that type's methods.
func ImageErodeFromID ¶ added in v0.17.0
func ImageErodeFromID(id objc.ID) *ImageErode
ImageErodeFromID adopts an existing Objective-C object as a ImageErode (nil for 0), retaining it and registering a release finalizer.
func NewImageErode ¶ added in v0.17.0
func NewImageErode() *ImageErode
NewImageErode creates a new ImageErode.
func (*ImageErode) WithClipRect ¶ added in v0.17.0
func (ie *ImageErode) WithClipRect(clipRect metal.MTLRegion) *ImageErode
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageErode) WithOffset ¶ added in v0.17.0
func (ie *ImageErode) WithOffset(offset mpscore.MPSOffset) *ImageErode
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageEuclideanDistanceTransform ¶ added in v0.17.0
type ImageEuclideanDistanceTransform struct {
UnaryImageKernel
}
ImageEuclideanDistanceTransform is an idiomatic wrapper over the Objective-C class MPSImageEuclideanDistanceTransform.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageEuclideanDistanceTransformFromID ¶ added in v0.17.0
func ImageEuclideanDistanceTransformFromID(id objc.ID) *ImageEuclideanDistanceTransform
ImageEuclideanDistanceTransformFromID adopts an existing Objective-C object as a ImageEuclideanDistanceTransform (nil for 0), retaining it and registering a release finalizer.
func NewImageEuclideanDistanceTransform ¶ added in v0.17.0
func NewImageEuclideanDistanceTransform() *ImageEuclideanDistanceTransform
NewImageEuclideanDistanceTransform creates a new ImageEuclideanDistanceTransform.
func (*ImageEuclideanDistanceTransform) SearchLimitRadius ¶ added in v0.17.0
func (iedt *ImageEuclideanDistanceTransform) SearchLimitRadius() float32
SearchLimitRadius defines a search scope size around output pixel to limit closest non-zero pixel search. Optional variable. When the non-zeroes in the input image are on average very far away from each other (ie. the distances are large), the distance calculation algorithm has to work harder to find the closest pixel. If you don't care about getting exact results beyond a certain distance you can use this property to limit the search space and speed up the kernels. In case there are no non-zero pixels within this search scope around the output pixel, then the output value will be some number that is larger than this search limit. Normally you should be fine with the default value of FLT_MAX, which results in the exact EDT, so use this only if you need additional performance. Typical good values are: 32, 64, 96, 128. Default: FLT_MAX
func (*ImageEuclideanDistanceTransform) WithClipRect ¶ added in v0.17.0
func (iedt *ImageEuclideanDistanceTransform) WithClipRect(clipRect metal.MTLRegion) *ImageEuclideanDistanceTransform
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageEuclideanDistanceTransform) WithOffset ¶ added in v0.17.0
func (iedt *ImageEuclideanDistanceTransform) WithOffset(offset mpscore.MPSOffset) *ImageEuclideanDistanceTransform
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
func (*ImageEuclideanDistanceTransform) WithSearchLimitRadius ¶ added in v0.17.0
func (iedt *ImageEuclideanDistanceTransform) WithSearchLimitRadius(searchLimitRadius float32) *ImageEuclideanDistanceTransform
WithSearchLimitRadius sets defines a search scope size around output pixel to limit closest non-zero pixel search. Optional variable. When the non-zeroes in the input image are on average very far away from each other (ie. the distances are large), the distance calculation algorithm has to work harder to find the closest pixel. If you don't care about getting exact results beyond a certain distance you can use this property to limit the search space and speed up the kernels. In case there are no non-zero pixels within this search scope around the output pixel, then the output value will be some number that is larger than this search limit. Normally you should be fine with the default value of FLT_MAX, which results in the exact EDT, so use this only if you need additional performance. Typical good values are: 32, 64, 96, 128. Default: FLT_MAX
type ImageFindKeypoints ¶ added in v0.17.0
ImageFindKeypoints is an idiomatic wrapper over the Objective-C class MPSImageFindKeypoints.
func ImageFindKeypointsFromID ¶ added in v0.17.0
func ImageFindKeypointsFromID(id objc.ID) *ImageFindKeypoints
ImageFindKeypointsFromID adopts an existing Objective-C object as a ImageFindKeypoints (nil for 0), retaining it and registering a release finalizer.
func NewImageFindKeypoints ¶ added in v0.17.0
func NewImageFindKeypoints() *ImageFindKeypoints
NewImageFindKeypoints creates a new ImageFindKeypoints.
func (*ImageFindKeypoints) Description ¶ added in v0.17.0
func (ifk *ImageFindKeypoints) Description() string
Description returns the object's -description text.
func (*ImageFindKeypoints) IsEqual ¶ added in v0.17.0
func (ifk *ImageFindKeypoints) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ImageFindKeypoints) IsKind ¶ added in v0.17.0
func (ifk *ImageFindKeypoints) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ImageFindKeypoints) KeypointRangeInfo ¶ added in v0.18.1
func (ifk *ImageFindKeypoints) KeypointRangeInfo() MPSImageKeypointRangeInfo
KeypointRangeInfo returns a structure describing the keypoint range info Returns a MPSImageKeypointRangeInfo structure
func (*ImageFindKeypoints) String ¶ added in v0.17.0
func (ifk *ImageFindKeypoints) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type ImageGaussianBlur ¶ added in v0.17.0
type ImageGaussianBlur struct {
UnaryImageKernel
}
ImageGaussianBlur is an idiomatic wrapper over the Objective-C class MPSImageGaussianBlur.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageGaussianBlurFromID ¶ added in v0.17.0
func ImageGaussianBlurFromID(id objc.ID) *ImageGaussianBlur
ImageGaussianBlurFromID adopts an existing Objective-C object as a ImageGaussianBlur (nil for 0), retaining it and registering a release finalizer.
func NewImageGaussianBlur ¶ added in v0.17.0
func NewImageGaussianBlur() *ImageGaussianBlur
NewImageGaussianBlur creates a new ImageGaussianBlur.
func (*ImageGaussianBlur) Sigma ¶ added in v0.17.0
func (igb *ImageGaussianBlur) Sigma() float32
Sigma returns read-only sigma value with which filter was created
func (*ImageGaussianBlur) WithClipRect ¶ added in v0.17.0
func (igb *ImageGaussianBlur) WithClipRect(clipRect metal.MTLRegion) *ImageGaussianBlur
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageGaussianBlur) WithOffset ¶ added in v0.17.0
func (igb *ImageGaussianBlur) WithOffset(offset mpscore.MPSOffset) *ImageGaussianBlur
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageGaussianPyramid ¶ added in v0.17.0
type ImageGaussianPyramid struct {
ImagePyramid
}
ImageGaussianPyramid is an idiomatic wrapper over the Objective-C class MPSImageGaussianPyramid.
It embeds ImagePyramid, promoting that type's methods.
func ImageGaussianPyramidFromID ¶ added in v0.17.0
func ImageGaussianPyramidFromID(id objc.ID) *ImageGaussianPyramid
ImageGaussianPyramidFromID adopts an existing Objective-C object as a ImageGaussianPyramid (nil for 0), retaining it and registering a release finalizer.
func NewImageGaussianPyramid ¶ added in v0.17.0
func NewImageGaussianPyramid() *ImageGaussianPyramid
NewImageGaussianPyramid creates a new ImageGaussianPyramid.
func (*ImageGaussianPyramid) WithClipRect ¶ added in v0.17.0
func (igp *ImageGaussianPyramid) WithClipRect(clipRect metal.MTLRegion) *ImageGaussianPyramid
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageGaussianPyramid) WithOffset ¶ added in v0.17.0
func (igp *ImageGaussianPyramid) WithOffset(offset mpscore.MPSOffset) *ImageGaussianPyramid
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageGuidedFilter ¶ added in v0.17.0
ImageGuidedFilter is an idiomatic wrapper over the Objective-C class MPSImageGuidedFilter.
func ImageGuidedFilterFromID ¶ added in v0.17.0
func ImageGuidedFilterFromID(id objc.ID) *ImageGuidedFilter
ImageGuidedFilterFromID adopts an existing Objective-C object as a ImageGuidedFilter (nil for 0), retaining it and registering a release finalizer.
func NewImageGuidedFilter ¶ added in v0.17.0
func NewImageGuidedFilter() *ImageGuidedFilter
NewImageGuidedFilter creates a new ImageGuidedFilter.
func (*ImageGuidedFilter) Description ¶ added in v0.17.0
func (igf *ImageGuidedFilter) Description() string
Description returns the object's -description text.
func (*ImageGuidedFilter) Epsilon ¶ added in v0.17.0
func (igf *ImageGuidedFilter) Epsilon() float32
Epsilon returns the regularization parameter The parameter used when computing the linear coefficients a and b.
func (*ImageGuidedFilter) IsEqual ¶ added in v0.17.0
func (igf *ImageGuidedFilter) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ImageGuidedFilter) IsKind ¶ added in v0.17.0
func (igf *ImageGuidedFilter) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ImageGuidedFilter) KernelDiameter ¶ added in v0.17.0
func (igf *ImageGuidedFilter) KernelDiameter() int
KernelDiameter returns the local window size The local window size.
func (*ImageGuidedFilter) ReconstructOffset ¶ added in v0.17.0
func (igf *ImageGuidedFilter) ReconstructOffset() float32
ReconstructOffset returns the offset parameter The offset parameter added to the result of the scaled reconstructed value. The default value is 0.0f.
func (*ImageGuidedFilter) ReconstructScale ¶ added in v0.17.0
func (igf *ImageGuidedFilter) ReconstructScale() float32
ReconstructScale returns the scale parameter The parameter used to scale the result of the reconstruction operation. The default value is 1.0f.
func (*ImageGuidedFilter) String ¶ added in v0.17.0
func (igf *ImageGuidedFilter) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ImageGuidedFilter) WithEpsilon ¶ added in v0.17.0
func (igf *ImageGuidedFilter) WithEpsilon(epsilon float32) *ImageGuidedFilter
WithEpsilon sets the regularization parameter The parameter used when computing the linear coefficients a and b.
func (*ImageGuidedFilter) WithReconstructOffset ¶ added in v0.17.0
func (igf *ImageGuidedFilter) WithReconstructOffset(reconstructOffset float32) *ImageGuidedFilter
WithReconstructOffset sets the offset parameter The offset parameter added to the result of the scaled reconstructed value. The default value is 0.0f.
func (*ImageGuidedFilter) WithReconstructScale ¶ added in v0.17.0
func (igf *ImageGuidedFilter) WithReconstructScale(reconstructScale float32) *ImageGuidedFilter
WithReconstructScale sets the scale parameter The parameter used to scale the result of the reconstruction operation. The default value is 1.0f.
type ImageHistogram ¶ added in v0.17.0
ImageHistogram is an idiomatic wrapper over the Objective-C class MPSImageHistogram.
func ImageHistogramFromID ¶ added in v0.17.0
func ImageHistogramFromID(id objc.ID) *ImageHistogram
ImageHistogramFromID adopts an existing Objective-C object as a ImageHistogram (nil for 0), retaining it and registering a release finalizer.
func NewImageHistogram ¶ added in v0.17.0
func NewImageHistogram() *ImageHistogram
NewImageHistogram creates a new ImageHistogram.
func (*ImageHistogram) ClipRectSource ¶ added in v0.17.0
func (ih *ImageHistogram) ClipRectSource() metal.MTLRegion
ClipRectSource returns the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture.
func (*ImageHistogram) Description ¶ added in v0.17.0
func (ih *ImageHistogram) Description() string
Description returns the object's -description text.
func (*ImageHistogram) IsEqual ¶ added in v0.17.0
func (ih *ImageHistogram) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ImageHistogram) IsKind ¶ added in v0.17.0
func (ih *ImageHistogram) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ImageHistogram) MinPixelThresholdValue ¶ added in v0.18.0
func (ih *ImageHistogram) MinPixelThresholdValue() unsafe.Pointer
MinPixelThresholdValue returns the minimum pixel threshold value The histogram entries will be incremented only if pixel value is >= minPixelThresholdValue. The minPixelThresholdValue is a floating-point value. For unsigned normalized textures, the minPixelThresholdValue should be a value between 0.0f and 1.0f (for eg. MTLPixelFormatRGBA8Unorm). For signed normalized textures, the minPixelThresholdValue should be a value between -1.0f and 1.0f (for eg. MTLPixelFormatRGBA8Snorm). Default: vector_float4(0.0f).
func (*ImageHistogram) String ¶ added in v0.17.0
func (ih *ImageHistogram) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ImageHistogram) WithClipRectSource ¶ added in v0.17.0
func (ih *ImageHistogram) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageHistogram
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture.
func (*ImageHistogram) WithMinPixelThresholdValue ¶ added in v0.17.0
func (ih *ImageHistogram) WithMinPixelThresholdValue(minPixelThresholdValue unsafe.Pointer) *ImageHistogram
WithMinPixelThresholdValue sets the minimum pixel threshold value The histogram entries will be incremented only if pixel value is >= minPixelThresholdValue. The minPixelThresholdValue is a floating-point value. For unsigned normalized textures, the minPixelThresholdValue should be a value between 0.0f and 1.0f (for eg. MTLPixelFormatRGBA8Unorm). For signed normalized textures, the minPixelThresholdValue should be a value between -1.0f and 1.0f (for eg. MTLPixelFormatRGBA8Snorm). Default: vector_float4(0.0f).
func (*ImageHistogram) WithZeroHistogram ¶ added in v0.17.0
func (ih *ImageHistogram) WithZeroHistogram(zeroHistogram bool) *ImageHistogram
WithZeroHistogram sets zero-initalize the histogram results Indicates that the memory region in which the histogram results are to be written in the histogram buffer are to be zero-initialized or not. Default: YES.
func (*ImageHistogram) ZeroHistogram ¶ added in v0.17.0
func (ih *ImageHistogram) ZeroHistogram() bool
ZeroHistogram reports whether zero-initalize the histogram results Indicates that the memory region in which the histogram results are to be written in the histogram buffer are to be zero-initialized or not. Default: true.
type ImageHistogramEqualization ¶ added in v0.17.0
type ImageHistogramEqualization struct {
UnaryImageKernel
}
ImageHistogramEqualization is an idiomatic wrapper over the Objective-C class MPSImageHistogramEqualization.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageHistogramEqualizationFromID ¶ added in v0.17.0
func ImageHistogramEqualizationFromID(id objc.ID) *ImageHistogramEqualization
ImageHistogramEqualizationFromID adopts an existing Objective-C object as a ImageHistogramEqualization (nil for 0), retaining it and registering a release finalizer.
func NewImageHistogramEqualization ¶ added in v0.17.0
func NewImageHistogramEqualization() *ImageHistogramEqualization
NewImageHistogramEqualization creates a new ImageHistogramEqualization.
func (*ImageHistogramEqualization) WithClipRect ¶ added in v0.17.0
func (ihe *ImageHistogramEqualization) WithClipRect(clipRect metal.MTLRegion) *ImageHistogramEqualization
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageHistogramEqualization) WithOffset ¶ added in v0.17.0
func (ihe *ImageHistogramEqualization) WithOffset(offset mpscore.MPSOffset) *ImageHistogramEqualization
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageHistogramSpecification ¶ added in v0.17.0
type ImageHistogramSpecification struct {
UnaryImageKernel
}
ImageHistogramSpecification is an idiomatic wrapper over the Objective-C class MPSImageHistogramSpecification.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageHistogramSpecificationFromID ¶ added in v0.17.0
func ImageHistogramSpecificationFromID(id objc.ID) *ImageHistogramSpecification
ImageHistogramSpecificationFromID adopts an existing Objective-C object as a ImageHistogramSpecification (nil for 0), retaining it and registering a release finalizer.
func NewImageHistogramSpecification ¶ added in v0.17.0
func NewImageHistogramSpecification() *ImageHistogramSpecification
NewImageHistogramSpecification creates a new ImageHistogramSpecification.
func (*ImageHistogramSpecification) WithClipRect ¶ added in v0.17.0
func (ihs *ImageHistogramSpecification) WithClipRect(clipRect metal.MTLRegion) *ImageHistogramSpecification
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageHistogramSpecification) WithOffset ¶ added in v0.17.0
func (ihs *ImageHistogramSpecification) WithOffset(offset mpscore.MPSOffset) *ImageHistogramSpecification
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageIntegral ¶ added in v0.17.0
type ImageIntegral struct {
UnaryImageKernel
}
ImageIntegral is an idiomatic wrapper over the Objective-C class MPSImageIntegral.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageIntegralFromID ¶ added in v0.17.0
func ImageIntegralFromID(id objc.ID) *ImageIntegral
ImageIntegralFromID adopts an existing Objective-C object as a ImageIntegral (nil for 0), retaining it and registering a release finalizer.
func NewImageIntegral ¶ added in v0.17.0
func NewImageIntegral() *ImageIntegral
NewImageIntegral creates a new ImageIntegral.
func (*ImageIntegral) WithClipRect ¶ added in v0.17.0
func (ii *ImageIntegral) WithClipRect(clipRect metal.MTLRegion) *ImageIntegral
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageIntegral) WithOffset ¶ added in v0.17.0
func (ii *ImageIntegral) WithOffset(offset mpscore.MPSOffset) *ImageIntegral
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageIntegralOfSquares ¶ added in v0.17.0
type ImageIntegralOfSquares struct {
UnaryImageKernel
}
ImageIntegralOfSquares is an idiomatic wrapper over the Objective-C class MPSImageIntegralOfSquares.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageIntegralOfSquaresFromID ¶ added in v0.17.0
func ImageIntegralOfSquaresFromID(id objc.ID) *ImageIntegralOfSquares
ImageIntegralOfSquaresFromID adopts an existing Objective-C object as a ImageIntegralOfSquares (nil for 0), retaining it and registering a release finalizer.
func NewImageIntegralOfSquares ¶ added in v0.17.0
func NewImageIntegralOfSquares() *ImageIntegralOfSquares
NewImageIntegralOfSquares creates a new ImageIntegralOfSquares.
func (*ImageIntegralOfSquares) WithClipRect ¶ added in v0.17.0
func (iios *ImageIntegralOfSquares) WithClipRect(clipRect metal.MTLRegion) *ImageIntegralOfSquares
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageIntegralOfSquares) WithOffset ¶ added in v0.17.0
func (iios *ImageIntegralOfSquares) WithOffset(offset mpscore.MPSOffset) *ImageIntegralOfSquares
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageLanczosScale ¶ added in v0.17.0
type ImageLanczosScale struct {
ImageScale
}
ImageLanczosScale is an idiomatic wrapper over the Objective-C class MPSImageLanczosScale.
It embeds ImageScale, promoting that type's methods.
func ImageLanczosScaleFromID ¶ added in v0.17.0
func ImageLanczosScaleFromID(id objc.ID) *ImageLanczosScale
ImageLanczosScaleFromID adopts an existing Objective-C object as a ImageLanczosScale (nil for 0), retaining it and registering a release finalizer.
func NewImageLanczosScale ¶ added in v0.17.0
func NewImageLanczosScale() *ImageLanczosScale
NewImageLanczosScale creates a new ImageLanczosScale.
func (*ImageLanczosScale) WithClipRect ¶ added in v0.17.0
func (ils *ImageLanczosScale) WithClipRect(clipRect metal.MTLRegion) *ImageLanczosScale
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageLanczosScale) WithOffset ¶ added in v0.17.0
func (ils *ImageLanczosScale) WithOffset(offset mpscore.MPSOffset) *ImageLanczosScale
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
func (*ImageLanczosScale) WithScaleTransform ¶ added in v0.18.0
func (ils *ImageLanczosScale) WithScaleTransform(scaleTransform *MPSScaleTransform) *ImageLanczosScale
WithScaleTransform sets an optional transform that describes how to scale and translate the source image If the scaleTransform is NULL, then any image scaling factor such as MPSImageLanczosScale will rescale the image so that the source image fits exactly into the destination texture. If the transform is not NULL, then the transform is used for determining how to map the source image to the destination. Default: NULL When the scaleTransform is set to non-NULL, the values pointed to by the new scaleTransform are copied to object storage, and the pointer is updated to point to internal storage. Do not attempt to free it. You may free your copy of the MPSScaleTransform as soon as the property set operation is complete. When calculating a scaleTransform, use the limits of the bounding box for the intended source region of interest and the destination clipRect. Adjustments for pixel center coordinates are handled internally to the function. For example, the scale transform to convert the entire source image to the entire destination image size (clipRect = MPSRectNoClip) would be:
type ImageLaplacian ¶ added in v0.17.0
type ImageLaplacian struct {
UnaryImageKernel
}
ImageLaplacian is an idiomatic wrapper over the Objective-C class MPSImageLaplacian.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageLaplacianFromID ¶ added in v0.17.0
func ImageLaplacianFromID(id objc.ID) *ImageLaplacian
ImageLaplacianFromID adopts an existing Objective-C object as a ImageLaplacian (nil for 0), retaining it and registering a release finalizer.
func NewImageLaplacian ¶ added in v0.17.0
func NewImageLaplacian() *ImageLaplacian
NewImageLaplacian creates a new ImageLaplacian.
func (*ImageLaplacian) Bias ¶ added in v0.17.0
func (il *ImageLaplacian) Bias() float32
Bias returns 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.
func (*ImageLaplacian) WithBias ¶ added in v0.17.0
func (il *ImageLaplacian) WithBias(bias float32) *ImageLaplacian
WithBias sets 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.
func (*ImageLaplacian) WithClipRect ¶ added in v0.17.0
func (il *ImageLaplacian) WithClipRect(clipRect metal.MTLRegion) *ImageLaplacian
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageLaplacian) WithOffset ¶ added in v0.17.0
func (il *ImageLaplacian) WithOffset(offset mpscore.MPSOffset) *ImageLaplacian
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageLaplacianPyramid ¶ added in v0.17.0
type ImageLaplacianPyramid struct {
ImagePyramid
}
ImageLaplacianPyramid is an idiomatic wrapper over the Objective-C class MPSImageLaplacianPyramid.
ImageLaplacianPyramid is an abstract base — you do not construct it directly. Construct one of ImageLaplacianPyramidAdd, ImageLaplacianPyramidSubtract and pass it where a ImageLaplacianPyramid is accepted.
func ImageLaplacianPyramidFromID ¶ added in v0.17.0
func ImageLaplacianPyramidFromID(id objc.ID) *ImageLaplacianPyramid
ImageLaplacianPyramidFromID adopts an existing Objective-C object as a ImageLaplacianPyramid (nil for 0), retaining it and registering a release finalizer.
func (*ImageLaplacianPyramid) LaplacianBias ¶ added in v0.17.0
func (ilp *ImageLaplacianPyramid) LaplacianBias() float32
LaplacianBias returns the laplacian bias.
func (*ImageLaplacianPyramid) LaplacianScale ¶ added in v0.17.0
func (ilp *ImageLaplacianPyramid) LaplacianScale() float32
LaplacianScale returns the laplacian scale.
func (*ImageLaplacianPyramid) WithClipRect ¶ added in v0.17.0
func (ilp *ImageLaplacianPyramid) WithClipRect(clipRect metal.MTLRegion) *ImageLaplacianPyramid
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageLaplacianPyramid) WithLaplacianBias ¶ added in v0.17.0
func (ilp *ImageLaplacianPyramid) WithLaplacianBias(laplacianBias float32) *ImageLaplacianPyramid
WithLaplacianBias sets the laplacian bias.
func (*ImageLaplacianPyramid) WithLaplacianScale ¶ added in v0.17.0
func (ilp *ImageLaplacianPyramid) WithLaplacianScale(laplacianScale float32) *ImageLaplacianPyramid
WithLaplacianScale sets the laplacian scale.
func (*ImageLaplacianPyramid) WithOffset ¶ added in v0.17.0
func (ilp *ImageLaplacianPyramid) WithOffset(offset mpscore.MPSOffset) *ImageLaplacianPyramid
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageLaplacianPyramidAdd ¶ added in v0.17.0
type ImageLaplacianPyramidAdd struct {
ImageLaplacianPyramid
}
ImageLaplacianPyramidAdd is an idiomatic wrapper over the Objective-C class MPSImageLaplacianPyramidAdd.
It embeds ImageLaplacianPyramid, promoting that type's methods.
func ImageLaplacianPyramidAddFromID ¶ added in v0.17.0
func ImageLaplacianPyramidAddFromID(id objc.ID) *ImageLaplacianPyramidAdd
ImageLaplacianPyramidAddFromID adopts an existing Objective-C object as a ImageLaplacianPyramidAdd (nil for 0), retaining it and registering a release finalizer.
func NewImageLaplacianPyramidAdd ¶ added in v0.17.0
func NewImageLaplacianPyramidAdd() *ImageLaplacianPyramidAdd
NewImageLaplacianPyramidAdd creates a new ImageLaplacianPyramidAdd.
func (*ImageLaplacianPyramidAdd) WithClipRect ¶ added in v0.17.0
func (ilpa *ImageLaplacianPyramidAdd) WithClipRect(clipRect metal.MTLRegion) *ImageLaplacianPyramidAdd
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageLaplacianPyramidAdd) WithLaplacianBias ¶ added in v0.17.0
func (ilpa *ImageLaplacianPyramidAdd) WithLaplacianBias(laplacianBias float32) *ImageLaplacianPyramidAdd
WithLaplacianBias sets the laplacian bias.
func (*ImageLaplacianPyramidAdd) WithLaplacianScale ¶ added in v0.17.0
func (ilpa *ImageLaplacianPyramidAdd) WithLaplacianScale(laplacianScale float32) *ImageLaplacianPyramidAdd
WithLaplacianScale sets the laplacian scale.
func (*ImageLaplacianPyramidAdd) WithOffset ¶ added in v0.17.0
func (ilpa *ImageLaplacianPyramidAdd) WithOffset(offset mpscore.MPSOffset) *ImageLaplacianPyramidAdd
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageLaplacianPyramidProvider ¶ added in v0.17.0
type ImageLaplacianPyramidProvider interface {
objref.Object
// contains filtered or unexported methods
}
ImageLaplacianPyramidProvider is accepted wherever a MPSImageLaplacianPyramid (or one of its subclasses) is expected.
type ImageLaplacianPyramidSubtract ¶ added in v0.17.0
type ImageLaplacianPyramidSubtract struct {
ImageLaplacianPyramid
}
ImageLaplacianPyramidSubtract is an idiomatic wrapper over the Objective-C class MPSImageLaplacianPyramidSubtract.
It embeds ImageLaplacianPyramid, promoting that type's methods.
func ImageLaplacianPyramidSubtractFromID ¶ added in v0.17.0
func ImageLaplacianPyramidSubtractFromID(id objc.ID) *ImageLaplacianPyramidSubtract
ImageLaplacianPyramidSubtractFromID adopts an existing Objective-C object as a ImageLaplacianPyramidSubtract (nil for 0), retaining it and registering a release finalizer.
func NewImageLaplacianPyramidSubtract ¶ added in v0.17.0
func NewImageLaplacianPyramidSubtract() *ImageLaplacianPyramidSubtract
NewImageLaplacianPyramidSubtract creates a new ImageLaplacianPyramidSubtract.
func (*ImageLaplacianPyramidSubtract) WithClipRect ¶ added in v0.17.0
func (ilps *ImageLaplacianPyramidSubtract) WithClipRect(clipRect metal.MTLRegion) *ImageLaplacianPyramidSubtract
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageLaplacianPyramidSubtract) WithLaplacianBias ¶ added in v0.17.0
func (ilps *ImageLaplacianPyramidSubtract) WithLaplacianBias(laplacianBias float32) *ImageLaplacianPyramidSubtract
WithLaplacianBias sets the laplacian bias.
func (*ImageLaplacianPyramidSubtract) WithLaplacianScale ¶ added in v0.17.0
func (ilps *ImageLaplacianPyramidSubtract) WithLaplacianScale(laplacianScale float32) *ImageLaplacianPyramidSubtract
WithLaplacianScale sets the laplacian scale.
func (*ImageLaplacianPyramidSubtract) WithOffset ¶ added in v0.17.0
func (ilps *ImageLaplacianPyramidSubtract) WithOffset(offset mpscore.MPSOffset) *ImageLaplacianPyramidSubtract
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageMedian ¶ added in v0.17.0
type ImageMedian struct {
UnaryImageKernel
}
ImageMedian is an idiomatic wrapper over the Objective-C class MPSImageMedian.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageMedianFromID ¶ added in v0.17.0
func ImageMedianFromID(id objc.ID) *ImageMedian
ImageMedianFromID adopts an existing Objective-C object as a ImageMedian (nil for 0), retaining it and registering a release finalizer.
func NewImageMedian ¶ added in v0.17.0
func NewImageMedian() *ImageMedian
NewImageMedian creates a new ImageMedian.
func (*ImageMedian) KernelDiameter ¶ added in v0.17.0
func (im *ImageMedian) KernelDiameter() int
KernelDiameter returns the diameter in pixels of the filter window. The median filter is applied to a kernelDiameter x kernelDiameter window of pixels centered on the corresponding source pixel for each destination pixel. The kernel diameter must be an odd number.
func (*ImageMedian) WithClipRect ¶ added in v0.17.0
func (im *ImageMedian) WithClipRect(clipRect metal.MTLRegion) *ImageMedian
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageMedian) WithOffset ¶ added in v0.17.0
func (im *ImageMedian) WithOffset(offset mpscore.MPSOffset) *ImageMedian
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageMultiply ¶ added in v0.17.0
type ImageMultiply struct {
ImageArithmetic
}
ImageMultiply is an idiomatic wrapper over the Objective-C class MPSImageMultiply.
It embeds ImageArithmetic, promoting that type's methods.
func ImageMultiplyFromID ¶ added in v0.17.0
func ImageMultiplyFromID(id objc.ID) *ImageMultiply
ImageMultiplyFromID adopts an existing Objective-C object as a ImageMultiply (nil for 0), retaining it and registering a release finalizer.
func NewImageMultiply ¶ added in v0.17.0
func NewImageMultiply() *ImageMultiply
NewImageMultiply creates a new ImageMultiply.
func (*ImageMultiply) WithBias ¶ added in v0.17.0
func (im *ImageMultiply) WithBias(bias float32) *ImageMultiply
WithBias sets the bias.
func (*ImageMultiply) WithClipRect ¶ added in v0.17.0
func (im *ImageMultiply) WithClipRect(clipRect metal.MTLRegion) *ImageMultiply
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageMultiply) WithMaximumValue ¶ added in v0.17.0
func (im *ImageMultiply) WithMaximumValue(maximumValue float32) *ImageMultiply
WithMaximumValue sets maximumValue is used to clamp the result of an arithmetic operation: result = clamp(result, minimumValue, maximumValue). The default value of maximumValue is FLT_MAX.
func (*ImageMultiply) WithMinimumValue ¶ added in v0.17.0
func (im *ImageMultiply) WithMinimumValue(minimumValue float32) *ImageMultiply
WithMinimumValue sets minimumValue is to clamp the result of an arithmetic operation: result = clamp(result, minimumValue, maximumValue). The default value of minimumValue is -FLT_MAX.
func (*ImageMultiply) WithPrimaryOffset ¶ added in v0.17.0
func (im *ImageMultiply) WithPrimaryOffset(primaryOffset mpscore.MPSOffset) *ImageMultiply
WithPrimaryOffset sets the position of the destination clip rectangle origin relative to the primary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and primary source image align. See Also:
func (*ImageMultiply) WithPrimaryScale ¶ added in v0.17.0
func (im *ImageMultiply) WithPrimaryScale(primaryScale float32) *ImageMultiply
WithPrimaryScale sets the primary scale.
func (*ImageMultiply) WithPrimaryStrideInPixels ¶ added in v0.17.0
func (im *ImageMultiply) WithPrimaryStrideInPixels(primaryStrideInPixels metal.MTLSize) *ImageMultiply
WithPrimaryStrideInPixels sets the secondarySource stride in the x, y, and z dimensions. The only supported values are 0 or 1. The default value for each dimension is 1.
func (*ImageMultiply) WithSecondaryOffset ¶ added in v0.17.0
func (im *ImageMultiply) WithSecondaryOffset(secondaryOffset mpscore.MPSOffset) *ImageMultiply
WithSecondaryOffset sets the position of the destination clip rectangle origin relative to the secondary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and secondary source image align. See Also:
func (*ImageMultiply) WithSecondaryScale ¶ added in v0.17.0
func (im *ImageMultiply) WithSecondaryScale(secondaryScale float32) *ImageMultiply
WithSecondaryScale sets the secondary scale.
func (*ImageMultiply) WithSecondaryStrideInPixels ¶ added in v0.17.0
func (im *ImageMultiply) WithSecondaryStrideInPixels(secondaryStrideInPixels metal.MTLSize) *ImageMultiply
WithSecondaryStrideInPixels sets the secondarySource stride in the x, y, and z dimensions. The only supported values are 0 or 1. The default value for each dimension is 1.
type ImageNormalizedHistogram ¶ added in v0.17.0
ImageNormalizedHistogram is an idiomatic wrapper over the Objective-C class MPSImageNormalizedHistogram.
func ImageNormalizedHistogramFromID ¶ added in v0.17.0
func ImageNormalizedHistogramFromID(id objc.ID) *ImageNormalizedHistogram
ImageNormalizedHistogramFromID adopts an existing Objective-C object as a ImageNormalizedHistogram (nil for 0), retaining it and registering a release finalizer.
func NewImageNormalizedHistogram ¶ added in v0.17.0
func NewImageNormalizedHistogram() *ImageNormalizedHistogram
NewImageNormalizedHistogram creates a new ImageNormalizedHistogram.
func (*ImageNormalizedHistogram) ClipRectSource ¶ added in v0.17.0
func (inh *ImageNormalizedHistogram) ClipRectSource() metal.MTLRegion
ClipRectSource returns the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture.
func (*ImageNormalizedHistogram) Description ¶ added in v0.17.0
func (inh *ImageNormalizedHistogram) Description() string
Description returns the object's -description text.
func (*ImageNormalizedHistogram) IsEqual ¶ added in v0.17.0
func (inh *ImageNormalizedHistogram) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ImageNormalizedHistogram) IsKind ¶ added in v0.17.0
func (inh *ImageNormalizedHistogram) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ImageNormalizedHistogram) String ¶ added in v0.17.0
func (inh *ImageNormalizedHistogram) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ImageNormalizedHistogram) WithClipRectSource ¶ added in v0.17.0
func (inh *ImageNormalizedHistogram) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageNormalizedHistogram
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture.
func (*ImageNormalizedHistogram) WithZeroHistogram ¶ added in v0.17.0
func (inh *ImageNormalizedHistogram) WithZeroHistogram(zeroHistogram bool) *ImageNormalizedHistogram
WithZeroHistogram sets zero-initalize the histogram results Indicates that the memory region in which the histogram results are to be written in the histogram buffer are to be zero-initialized or not. Default: YES.
func (*ImageNormalizedHistogram) ZeroHistogram ¶ added in v0.17.0
func (inh *ImageNormalizedHistogram) ZeroHistogram() bool
ZeroHistogram reports whether zero-initalize the histogram results Indicates that the memory region in which the histogram results are to be written in the histogram buffer are to be zero-initialized or not. Default: true.
type ImagePyramid ¶ added in v0.17.0
type ImagePyramid struct {
UnaryImageKernel
}
ImagePyramid is an idiomatic wrapper over the Objective-C class MPSImagePyramid.
ImagePyramid is an abstract base — you do not construct it directly. Construct one of ImageGaussianPyramid, ImageLaplacianPyramid and pass it where a ImagePyramid is accepted.
func ImagePyramidFromID ¶ added in v0.17.0
func ImagePyramidFromID(id objc.ID) *ImagePyramid
ImagePyramidFromID adopts an existing Objective-C object as a ImagePyramid (nil for 0), retaining it and registering a release finalizer.
func (*ImagePyramid) KernelHeight ¶ added in v0.17.0
func (ip *ImagePyramid) KernelHeight() int
KernelHeight returns the height of the filter window. Must be an odd number.
func (*ImagePyramid) KernelWidth ¶ added in v0.17.0
func (ip *ImagePyramid) KernelWidth() int
KernelWidth returns the width of the filter window. Must be an odd number.
func (*ImagePyramid) WithClipRect ¶ added in v0.17.0
func (ip *ImagePyramid) WithClipRect(clipRect metal.MTLRegion) *ImagePyramid
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImagePyramid) WithOffset ¶ added in v0.17.0
func (ip *ImagePyramid) WithOffset(offset mpscore.MPSOffset) *ImagePyramid
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImagePyramidProvider ¶ added in v0.17.0
ImagePyramidProvider is accepted wherever a MPSImagePyramid (or one of its subclasses) is expected.
type ImageReduceColumnMax ¶ added in v0.17.0
type ImageReduceColumnMax struct {
ImageReduceUnary
}
ImageReduceColumnMax is an idiomatic wrapper over the Objective-C class MPSImageReduceColumnMax.
It embeds ImageReduceUnary, promoting that type's methods.
func ImageReduceColumnMaxFromID ¶ added in v0.17.0
func ImageReduceColumnMaxFromID(id objc.ID) *ImageReduceColumnMax
ImageReduceColumnMaxFromID adopts an existing Objective-C object as a ImageReduceColumnMax (nil for 0), retaining it and registering a release finalizer.
func NewImageReduceColumnMax ¶ added in v0.17.0
func NewImageReduceColumnMax() *ImageReduceColumnMax
NewImageReduceColumnMax creates a new ImageReduceColumnMax.
func (*ImageReduceColumnMax) WithClipRect ¶ added in v0.17.0
func (ircm *ImageReduceColumnMax) WithClipRect(clipRect metal.MTLRegion) *ImageReduceColumnMax
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageReduceColumnMax) WithClipRectSource ¶ added in v0.17.0
func (ircm *ImageReduceColumnMax) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageReduceColumnMax
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the min, max values are written. The clipRect.width must be >=2. The clipRect.height must be >= 1.
func (*ImageReduceColumnMax) WithOffset ¶ added in v0.17.0
func (ircm *ImageReduceColumnMax) WithOffset(offset mpscore.MPSOffset) *ImageReduceColumnMax
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageReduceColumnMean ¶ added in v0.17.0
type ImageReduceColumnMean struct {
ImageReduceUnary
}
ImageReduceColumnMean is an idiomatic wrapper over the Objective-C class MPSImageReduceColumnMean.
It embeds ImageReduceUnary, promoting that type's methods.
func ImageReduceColumnMeanFromID ¶ added in v0.17.0
func ImageReduceColumnMeanFromID(id objc.ID) *ImageReduceColumnMean
ImageReduceColumnMeanFromID adopts an existing Objective-C object as a ImageReduceColumnMean (nil for 0), retaining it and registering a release finalizer.
func NewImageReduceColumnMean ¶ added in v0.17.0
func NewImageReduceColumnMean() *ImageReduceColumnMean
NewImageReduceColumnMean creates a new ImageReduceColumnMean.
func (*ImageReduceColumnMean) WithClipRect ¶ added in v0.17.0
func (ircm *ImageReduceColumnMean) WithClipRect(clipRect metal.MTLRegion) *ImageReduceColumnMean
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageReduceColumnMean) WithClipRectSource ¶ added in v0.17.0
func (ircm *ImageReduceColumnMean) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageReduceColumnMean
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the min, max values are written. The clipRect.width must be >=2. The clipRect.height must be >= 1.
func (*ImageReduceColumnMean) WithOffset ¶ added in v0.17.0
func (ircm *ImageReduceColumnMean) WithOffset(offset mpscore.MPSOffset) *ImageReduceColumnMean
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageReduceColumnMin ¶ added in v0.17.0
type ImageReduceColumnMin struct {
ImageReduceUnary
}
ImageReduceColumnMin is an idiomatic wrapper over the Objective-C class MPSImageReduceColumnMin.
It embeds ImageReduceUnary, promoting that type's methods.
func ImageReduceColumnMinFromID ¶ added in v0.17.0
func ImageReduceColumnMinFromID(id objc.ID) *ImageReduceColumnMin
ImageReduceColumnMinFromID adopts an existing Objective-C object as a ImageReduceColumnMin (nil for 0), retaining it and registering a release finalizer.
func NewImageReduceColumnMin ¶ added in v0.17.0
func NewImageReduceColumnMin() *ImageReduceColumnMin
NewImageReduceColumnMin creates a new ImageReduceColumnMin.
func (*ImageReduceColumnMin) WithClipRect ¶ added in v0.17.0
func (ircm *ImageReduceColumnMin) WithClipRect(clipRect metal.MTLRegion) *ImageReduceColumnMin
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageReduceColumnMin) WithClipRectSource ¶ added in v0.17.0
func (ircm *ImageReduceColumnMin) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageReduceColumnMin
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the min, max values are written. The clipRect.width must be >=2. The clipRect.height must be >= 1.
func (*ImageReduceColumnMin) WithOffset ¶ added in v0.17.0
func (ircm *ImageReduceColumnMin) WithOffset(offset mpscore.MPSOffset) *ImageReduceColumnMin
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageReduceColumnSum ¶ added in v0.17.0
type ImageReduceColumnSum struct {
ImageReduceUnary
}
ImageReduceColumnSum is an idiomatic wrapper over the Objective-C class MPSImageReduceColumnSum.
It embeds ImageReduceUnary, promoting that type's methods.
func ImageReduceColumnSumFromID ¶ added in v0.17.0
func ImageReduceColumnSumFromID(id objc.ID) *ImageReduceColumnSum
ImageReduceColumnSumFromID adopts an existing Objective-C object as a ImageReduceColumnSum (nil for 0), retaining it and registering a release finalizer.
func NewImageReduceColumnSum ¶ added in v0.17.0
func NewImageReduceColumnSum() *ImageReduceColumnSum
NewImageReduceColumnSum creates a new ImageReduceColumnSum.
func (*ImageReduceColumnSum) WithClipRect ¶ added in v0.17.0
func (ircs *ImageReduceColumnSum) WithClipRect(clipRect metal.MTLRegion) *ImageReduceColumnSum
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageReduceColumnSum) WithClipRectSource ¶ added in v0.17.0
func (ircs *ImageReduceColumnSum) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageReduceColumnSum
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the min, max values are written. The clipRect.width must be >=2. The clipRect.height must be >= 1.
func (*ImageReduceColumnSum) WithOffset ¶ added in v0.17.0
func (ircs *ImageReduceColumnSum) WithOffset(offset mpscore.MPSOffset) *ImageReduceColumnSum
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageReduceRowMax ¶ added in v0.17.0
type ImageReduceRowMax struct {
ImageReduceUnary
}
ImageReduceRowMax is an idiomatic wrapper over the Objective-C class MPSImageReduceRowMax.
It embeds ImageReduceUnary, promoting that type's methods.
func ImageReduceRowMaxFromID ¶ added in v0.17.0
func ImageReduceRowMaxFromID(id objc.ID) *ImageReduceRowMax
ImageReduceRowMaxFromID adopts an existing Objective-C object as a ImageReduceRowMax (nil for 0), retaining it and registering a release finalizer.
func NewImageReduceRowMax ¶ added in v0.17.0
func NewImageReduceRowMax() *ImageReduceRowMax
NewImageReduceRowMax creates a new ImageReduceRowMax.
func (*ImageReduceRowMax) WithClipRect ¶ added in v0.17.0
func (irrm *ImageReduceRowMax) WithClipRect(clipRect metal.MTLRegion) *ImageReduceRowMax
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageReduceRowMax) WithClipRectSource ¶ added in v0.17.0
func (irrm *ImageReduceRowMax) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageReduceRowMax
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the min, max values are written. The clipRect.width must be >=2. The clipRect.height must be >= 1.
func (*ImageReduceRowMax) WithOffset ¶ added in v0.17.0
func (irrm *ImageReduceRowMax) WithOffset(offset mpscore.MPSOffset) *ImageReduceRowMax
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageReduceRowMean ¶ added in v0.17.0
type ImageReduceRowMean struct {
ImageReduceUnary
}
ImageReduceRowMean is an idiomatic wrapper over the Objective-C class MPSImageReduceRowMean.
It embeds ImageReduceUnary, promoting that type's methods.
func ImageReduceRowMeanFromID ¶ added in v0.17.0
func ImageReduceRowMeanFromID(id objc.ID) *ImageReduceRowMean
ImageReduceRowMeanFromID adopts an existing Objective-C object as a ImageReduceRowMean (nil for 0), retaining it and registering a release finalizer.
func NewImageReduceRowMean ¶ added in v0.17.0
func NewImageReduceRowMean() *ImageReduceRowMean
NewImageReduceRowMean creates a new ImageReduceRowMean.
func (*ImageReduceRowMean) WithClipRect ¶ added in v0.17.0
func (irrm *ImageReduceRowMean) WithClipRect(clipRect metal.MTLRegion) *ImageReduceRowMean
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageReduceRowMean) WithClipRectSource ¶ added in v0.17.0
func (irrm *ImageReduceRowMean) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageReduceRowMean
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the min, max values are written. The clipRect.width must be >=2. The clipRect.height must be >= 1.
func (*ImageReduceRowMean) WithOffset ¶ added in v0.17.0
func (irrm *ImageReduceRowMean) WithOffset(offset mpscore.MPSOffset) *ImageReduceRowMean
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageReduceRowMin ¶ added in v0.17.0
type ImageReduceRowMin struct {
ImageReduceUnary
}
ImageReduceRowMin is an idiomatic wrapper over the Objective-C class MPSImageReduceRowMin.
It embeds ImageReduceUnary, promoting that type's methods.
func ImageReduceRowMinFromID ¶ added in v0.17.0
func ImageReduceRowMinFromID(id objc.ID) *ImageReduceRowMin
ImageReduceRowMinFromID adopts an existing Objective-C object as a ImageReduceRowMin (nil for 0), retaining it and registering a release finalizer.
func NewImageReduceRowMin ¶ added in v0.17.0
func NewImageReduceRowMin() *ImageReduceRowMin
NewImageReduceRowMin creates a new ImageReduceRowMin.
func (*ImageReduceRowMin) WithClipRect ¶ added in v0.17.0
func (irrm *ImageReduceRowMin) WithClipRect(clipRect metal.MTLRegion) *ImageReduceRowMin
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageReduceRowMin) WithClipRectSource ¶ added in v0.17.0
func (irrm *ImageReduceRowMin) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageReduceRowMin
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the min, max values are written. The clipRect.width must be >=2. The clipRect.height must be >= 1.
func (*ImageReduceRowMin) WithOffset ¶ added in v0.17.0
func (irrm *ImageReduceRowMin) WithOffset(offset mpscore.MPSOffset) *ImageReduceRowMin
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageReduceRowSum ¶ added in v0.17.0
type ImageReduceRowSum struct {
ImageReduceUnary
}
ImageReduceRowSum is an idiomatic wrapper over the Objective-C class MPSImageReduceRowSum.
It embeds ImageReduceUnary, promoting that type's methods.
func ImageReduceRowSumFromID ¶ added in v0.17.0
func ImageReduceRowSumFromID(id objc.ID) *ImageReduceRowSum
ImageReduceRowSumFromID adopts an existing Objective-C object as a ImageReduceRowSum (nil for 0), retaining it and registering a release finalizer.
func NewImageReduceRowSum ¶ added in v0.17.0
func NewImageReduceRowSum() *ImageReduceRowSum
NewImageReduceRowSum creates a new ImageReduceRowSum.
func (*ImageReduceRowSum) WithClipRect ¶ added in v0.17.0
func (irrs *ImageReduceRowSum) WithClipRect(clipRect metal.MTLRegion) *ImageReduceRowSum
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageReduceRowSum) WithClipRectSource ¶ added in v0.17.0
func (irrs *ImageReduceRowSum) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageReduceRowSum
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the min, max values are written. The clipRect.width must be >=2. The clipRect.height must be >= 1.
func (*ImageReduceRowSum) WithOffset ¶ added in v0.17.0
func (irrs *ImageReduceRowSum) WithOffset(offset mpscore.MPSOffset) *ImageReduceRowSum
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageReduceUnary ¶ added in v0.17.0
type ImageReduceUnary struct {
UnaryImageKernel
}
ImageReduceUnary is an idiomatic wrapper over the Objective-C class MPSImageReduceUnary.
ImageReduceUnary is an abstract base — you do not construct it directly. Construct one of ImageReduceColumnMax, ImageReduceColumnMean, ImageReduceColumnMin, ImageReduceColumnSum, ImageReduceRowMax, ImageReduceRowMean, ImageReduceRowMin, ImageReduceRowSum and pass it where a ImageReduceUnary is accepted.
func ImageReduceUnaryFromID ¶ added in v0.17.0
func ImageReduceUnaryFromID(id objc.ID) *ImageReduceUnary
ImageReduceUnaryFromID adopts an existing Objective-C object as a ImageReduceUnary (nil for 0), retaining it and registering a release finalizer.
func (*ImageReduceUnary) ClipRectSource ¶ added in v0.17.0
func (iru *ImageReduceUnary) ClipRectSource() metal.MTLRegion
ClipRectSource returns the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the min, max values are written. The clipRect.width must be >=2. The clipRect.height must be >= 1.
func (*ImageReduceUnary) WithClipRect ¶ added in v0.17.0
func (iru *ImageReduceUnary) WithClipRect(clipRect metal.MTLRegion) *ImageReduceUnary
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageReduceUnary) WithClipRectSource ¶ added in v0.17.0
func (iru *ImageReduceUnary) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageReduceUnary
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the min, max values are written. The clipRect.width must be >=2. The clipRect.height must be >= 1.
func (*ImageReduceUnary) WithOffset ¶ added in v0.17.0
func (iru *ImageReduceUnary) WithOffset(offset mpscore.MPSOffset) *ImageReduceUnary
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageReduceUnaryProvider ¶ added in v0.17.0
type ImageReduceUnaryProvider interface {
objref.Object
// contains filtered or unexported methods
}
ImageReduceUnaryProvider is accepted wherever a MPSImageReduceUnary (or one of its subclasses) is expected.
type ImageScale ¶ added in v0.17.0
type ImageScale struct {
UnaryImageKernel
}
ImageScale is an idiomatic wrapper over the Objective-C class MPSImageScale.
ImageScale is an abstract base — you do not construct it directly. Construct one of ImageBilinearScale, ImageLanczosScale and pass it where a ImageScale is accepted.
func ImageScaleFromID ¶ added in v0.17.0
func ImageScaleFromID(id objc.ID) *ImageScale
ImageScaleFromID adopts an existing Objective-C object as a ImageScale (nil for 0), retaining it and registering a release finalizer.
func (*ImageScale) ScaleTransform ¶ added in v0.18.0
func (is *ImageScale) ScaleTransform() *MPSScaleTransform
ScaleTransform returns an optional transform that describes how to scale and translate the source image If the scaleTransform is NULL, then any image scaling factor such as MPSImageLanczosScale will rescale the image so that the source image fits exactly into the destination texture. If the transform is not NULL, then the transform is used for determining how to map the source image to the destination. Default: NULL When the scaleTransform is set to non-NULL, the values pointed to by the new scaleTransform are copied to object storage, and the pointer is updated to point to internal storage. Do not attempt to free it. You may free your copy of the MPSScaleTransform as soon as the property set operation is complete. When calculating a scaleTransform, use the limits of the bounding box for the intended source region of interest and the destination clipRect. Adjustments for pixel center coordinates are handled internally to the function. For example, the scale transform to convert the entire source image to the entire destination image size (clipRect = MPSRectNoClip) would be:
func (*ImageScale) WithClipRect ¶ added in v0.17.0
func (is *ImageScale) WithClipRect(clipRect metal.MTLRegion) *ImageScale
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageScale) WithOffset ¶ added in v0.17.0
func (is *ImageScale) WithOffset(offset mpscore.MPSOffset) *ImageScale
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
func (*ImageScale) WithScaleTransform ¶ added in v0.18.0
func (is *ImageScale) WithScaleTransform(scaleTransform *MPSScaleTransform) *ImageScale
WithScaleTransform sets an optional transform that describes how to scale and translate the source image If the scaleTransform is NULL, then any image scaling factor such as MPSImageLanczosScale will rescale the image so that the source image fits exactly into the destination texture. If the transform is not NULL, then the transform is used for determining how to map the source image to the destination. Default: NULL When the scaleTransform is set to non-NULL, the values pointed to by the new scaleTransform are copied to object storage, and the pointer is updated to point to internal storage. Do not attempt to free it. You may free your copy of the MPSScaleTransform as soon as the property set operation is complete. When calculating a scaleTransform, use the limits of the bounding box for the intended source region of interest and the destination clipRect. Adjustments for pixel center coordinates are handled internally to the function. For example, the scale transform to convert the entire source image to the entire destination image size (clipRect = MPSRectNoClip) would be:
type ImageScaleProvider ¶ added in v0.17.0
ImageScaleProvider is accepted wherever a MPSImageScale (or one of its subclasses) is expected.
type ImageSobel ¶ added in v0.17.0
type ImageSobel struct {
UnaryImageKernel
}
ImageSobel is an idiomatic wrapper over the Objective-C class MPSImageSobel.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageSobelFromID ¶ added in v0.17.0
func ImageSobelFromID(id objc.ID) *ImageSobel
ImageSobelFromID adopts an existing Objective-C object as a ImageSobel (nil for 0), retaining it and registering a release finalizer.
func NewImageSobel ¶ added in v0.17.0
func NewImageSobel() *ImageSobel
NewImageSobel creates a new ImageSobel.
func (*ImageSobel) WithClipRect ¶ added in v0.17.0
func (is *ImageSobel) WithClipRect(clipRect metal.MTLRegion) *ImageSobel
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageSobel) WithOffset ¶ added in v0.17.0
func (is *ImageSobel) WithOffset(offset mpscore.MPSOffset) *ImageSobel
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageStatisticsMean ¶ added in v0.17.0
type ImageStatisticsMean struct {
UnaryImageKernel
}
ImageStatisticsMean is an idiomatic wrapper over the Objective-C class MPSImageStatisticsMean.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageStatisticsMeanFromID ¶ added in v0.17.0
func ImageStatisticsMeanFromID(id objc.ID) *ImageStatisticsMean
ImageStatisticsMeanFromID adopts an existing Objective-C object as a ImageStatisticsMean (nil for 0), retaining it and registering a release finalizer.
func NewImageStatisticsMean ¶ added in v0.17.0
func NewImageStatisticsMean() *ImageStatisticsMean
NewImageStatisticsMean creates a new ImageStatisticsMean.
func (*ImageStatisticsMean) ClipRectSource ¶ added in v0.17.0
func (ism *ImageStatisticsMean) ClipRectSource() metal.MTLRegion
ClipRectSource returns the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the mean value is written.
func (*ImageStatisticsMean) WithClipRect ¶ added in v0.17.0
func (ism *ImageStatisticsMean) WithClipRect(clipRect metal.MTLRegion) *ImageStatisticsMean
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageStatisticsMean) WithClipRectSource ¶ added in v0.17.0
func (ism *ImageStatisticsMean) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageStatisticsMean
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the mean value is written.
func (*ImageStatisticsMean) WithOffset ¶ added in v0.17.0
func (ism *ImageStatisticsMean) WithOffset(offset mpscore.MPSOffset) *ImageStatisticsMean
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageStatisticsMeanAndVariance ¶ added in v0.17.0
type ImageStatisticsMeanAndVariance struct {
UnaryImageKernel
}
ImageStatisticsMeanAndVariance is an idiomatic wrapper over the Objective-C class MPSImageStatisticsMeanAndVariance.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageStatisticsMeanAndVarianceFromID ¶ added in v0.17.0
func ImageStatisticsMeanAndVarianceFromID(id objc.ID) *ImageStatisticsMeanAndVariance
ImageStatisticsMeanAndVarianceFromID adopts an existing Objective-C object as a ImageStatisticsMeanAndVariance (nil for 0), retaining it and registering a release finalizer.
func NewImageStatisticsMeanAndVariance ¶ added in v0.17.0
func NewImageStatisticsMeanAndVariance() *ImageStatisticsMeanAndVariance
NewImageStatisticsMeanAndVariance creates a new ImageStatisticsMeanAndVariance.
func (*ImageStatisticsMeanAndVariance) ClipRectSource ¶ added in v0.17.0
func (ismav *ImageStatisticsMeanAndVariance) ClipRectSource() metal.MTLRegion
ClipRectSource returns the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the mean value is written.
func (*ImageStatisticsMeanAndVariance) WithClipRect ¶ added in v0.17.0
func (ismav *ImageStatisticsMeanAndVariance) WithClipRect(clipRect metal.MTLRegion) *ImageStatisticsMeanAndVariance
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageStatisticsMeanAndVariance) WithClipRectSource ¶ added in v0.17.0
func (ismav *ImageStatisticsMeanAndVariance) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageStatisticsMeanAndVariance
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the mean value is written.
func (*ImageStatisticsMeanAndVariance) WithOffset ¶ added in v0.17.0
func (ismav *ImageStatisticsMeanAndVariance) WithOffset(offset mpscore.MPSOffset) *ImageStatisticsMeanAndVariance
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageStatisticsMinAndMax ¶ added in v0.17.0
type ImageStatisticsMinAndMax struct {
UnaryImageKernel
}
ImageStatisticsMinAndMax is an idiomatic wrapper over the Objective-C class MPSImageStatisticsMinAndMax.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageStatisticsMinAndMaxFromID ¶ added in v0.17.0
func ImageStatisticsMinAndMaxFromID(id objc.ID) *ImageStatisticsMinAndMax
ImageStatisticsMinAndMaxFromID adopts an existing Objective-C object as a ImageStatisticsMinAndMax (nil for 0), retaining it and registering a release finalizer.
func NewImageStatisticsMinAndMax ¶ added in v0.17.0
func NewImageStatisticsMinAndMax() *ImageStatisticsMinAndMax
NewImageStatisticsMinAndMax creates a new ImageStatisticsMinAndMax.
func (*ImageStatisticsMinAndMax) ClipRectSource ¶ added in v0.17.0
func (ismam *ImageStatisticsMinAndMax) ClipRectSource() metal.MTLRegion
ClipRectSource returns the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the min, max values are written. The clipRect.width must be >=2. The clipRect.height must be >= 1.
func (*ImageStatisticsMinAndMax) WithClipRect ¶ added in v0.17.0
func (ismam *ImageStatisticsMinAndMax) WithClipRect(clipRect metal.MTLRegion) *ImageStatisticsMinAndMax
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageStatisticsMinAndMax) WithClipRectSource ¶ added in v0.17.0
func (ismam *ImageStatisticsMinAndMax) WithClipRectSource(clipRectSource metal.MTLRegion) *ImageStatisticsMinAndMax
WithClipRectSource sets the source rectangle to use when reading data. A MTLRegion that indicates which part of the source to read. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used. The clipRectSource replaces the MPSUnaryImageKernel offset parameter for this filter. The latter is ignored. Default: MPSRectNoClip, use the entire source texture. The clipRect specified in MPSUnaryImageKernel is used to control the origin in the destination texture where the min, max values are written. The clipRect.width must be >=2. The clipRect.height must be >= 1.
func (*ImageStatisticsMinAndMax) WithOffset ¶ added in v0.17.0
func (ismam *ImageStatisticsMinAndMax) WithOffset(offset mpscore.MPSOffset) *ImageStatisticsMinAndMax
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageSubtract ¶ added in v0.17.0
type ImageSubtract struct {
ImageArithmetic
}
ImageSubtract is an idiomatic wrapper over the Objective-C class MPSImageSubtract.
It embeds ImageArithmetic, promoting that type's methods.
func ImageSubtractFromID ¶ added in v0.17.0
func ImageSubtractFromID(id objc.ID) *ImageSubtract
ImageSubtractFromID adopts an existing Objective-C object as a ImageSubtract (nil for 0), retaining it and registering a release finalizer.
func NewImageSubtract ¶ added in v0.17.0
func NewImageSubtract() *ImageSubtract
NewImageSubtract creates a new ImageSubtract.
func (*ImageSubtract) WithBias ¶ added in v0.17.0
func (is *ImageSubtract) WithBias(bias float32) *ImageSubtract
WithBias sets the bias.
func (*ImageSubtract) WithClipRect ¶ added in v0.17.0
func (is *ImageSubtract) WithClipRect(clipRect metal.MTLRegion) *ImageSubtract
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageSubtract) WithMaximumValue ¶ added in v0.17.0
func (is *ImageSubtract) WithMaximumValue(maximumValue float32) *ImageSubtract
WithMaximumValue sets maximumValue is used to clamp the result of an arithmetic operation: result = clamp(result, minimumValue, maximumValue). The default value of maximumValue is FLT_MAX.
func (*ImageSubtract) WithMinimumValue ¶ added in v0.17.0
func (is *ImageSubtract) WithMinimumValue(minimumValue float32) *ImageSubtract
WithMinimumValue sets minimumValue is to clamp the result of an arithmetic operation: result = clamp(result, minimumValue, maximumValue). The default value of minimumValue is -FLT_MAX.
func (*ImageSubtract) WithPrimaryOffset ¶ added in v0.17.0
func (is *ImageSubtract) WithPrimaryOffset(primaryOffset mpscore.MPSOffset) *ImageSubtract
WithPrimaryOffset sets the position of the destination clip rectangle origin relative to the primary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and primary source image align. See Also:
func (*ImageSubtract) WithPrimaryScale ¶ added in v0.17.0
func (is *ImageSubtract) WithPrimaryScale(primaryScale float32) *ImageSubtract
WithPrimaryScale sets the primary scale.
func (*ImageSubtract) WithPrimaryStrideInPixels ¶ added in v0.17.0
func (is *ImageSubtract) WithPrimaryStrideInPixels(primaryStrideInPixels metal.MTLSize) *ImageSubtract
WithPrimaryStrideInPixels sets the secondarySource stride in the x, y, and z dimensions. The only supported values are 0 or 1. The default value for each dimension is 1.
func (*ImageSubtract) WithSecondaryOffset ¶ added in v0.17.0
func (is *ImageSubtract) WithSecondaryOffset(secondaryOffset mpscore.MPSOffset) *ImageSubtract
WithSecondaryOffset sets the position of the destination clip rectangle origin relative to the secondary source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and secondary source image align. See Also:
func (*ImageSubtract) WithSecondaryScale ¶ added in v0.17.0
func (is *ImageSubtract) WithSecondaryScale(secondaryScale float32) *ImageSubtract
WithSecondaryScale sets the secondary scale.
func (*ImageSubtract) WithSecondaryStrideInPixels ¶ added in v0.17.0
func (is *ImageSubtract) WithSecondaryStrideInPixels(secondaryStrideInPixels metal.MTLSize) *ImageSubtract
WithSecondaryStrideInPixels sets the secondarySource stride in the x, y, and z dimensions. The only supported values are 0 or 1. The default value for each dimension is 1.
type ImageTent ¶ added in v0.17.0
type ImageTent struct {
ImageBox
}
ImageTent is an idiomatic wrapper over the Objective-C class MPSImageTent.
It embeds ImageBox, promoting that type's methods.
func ImageTentFromID ¶ added in v0.17.0
ImageTentFromID adopts an existing Objective-C object as a ImageTent (nil for 0), retaining it and registering a release finalizer.
func NewImageTent ¶ added in v0.17.0
func NewImageTent() *ImageTent
NewImageTent creates a new ImageTent.
func (*ImageTent) WithClipRect ¶ added in v0.17.0
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageTent) WithOffset ¶ added in v0.17.0
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageThresholdBinary ¶ added in v0.17.0
type ImageThresholdBinary struct {
UnaryImageKernel
}
ImageThresholdBinary is an idiomatic wrapper over the Objective-C class MPSImageThresholdBinary.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageThresholdBinaryFromID ¶ added in v0.17.0
func ImageThresholdBinaryFromID(id objc.ID) *ImageThresholdBinary
ImageThresholdBinaryFromID adopts an existing Objective-C object as a ImageThresholdBinary (nil for 0), retaining it and registering a release finalizer.
func NewImageThresholdBinary ¶ added in v0.17.0
func NewImageThresholdBinary() *ImageThresholdBinary
NewImageThresholdBinary creates a new ImageThresholdBinary.
func (*ImageThresholdBinary) MaximumValue ¶ added in v0.17.0
func (itb *ImageThresholdBinary) MaximumValue() float32
MaximumValue returns the maximum value used to init the threshold filter
func (*ImageThresholdBinary) ThresholdValue ¶ added in v0.17.0
func (itb *ImageThresholdBinary) ThresholdValue() float32
ThresholdValue returns the threshold value used to init the threshold filter
func (*ImageThresholdBinary) WithClipRect ¶ added in v0.17.0
func (itb *ImageThresholdBinary) WithClipRect(clipRect metal.MTLRegion) *ImageThresholdBinary
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageThresholdBinary) WithOffset ¶ added in v0.17.0
func (itb *ImageThresholdBinary) WithOffset(offset mpscore.MPSOffset) *ImageThresholdBinary
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageThresholdBinaryInverse ¶ added in v0.17.0
type ImageThresholdBinaryInverse struct {
UnaryImageKernel
}
ImageThresholdBinaryInverse is an idiomatic wrapper over the Objective-C class MPSImageThresholdBinaryInverse.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageThresholdBinaryInverseFromID ¶ added in v0.17.0
func ImageThresholdBinaryInverseFromID(id objc.ID) *ImageThresholdBinaryInverse
ImageThresholdBinaryInverseFromID adopts an existing Objective-C object as a ImageThresholdBinaryInverse (nil for 0), retaining it and registering a release finalizer.
func NewImageThresholdBinaryInverse ¶ added in v0.17.0
func NewImageThresholdBinaryInverse() *ImageThresholdBinaryInverse
NewImageThresholdBinaryInverse creates a new ImageThresholdBinaryInverse.
func (*ImageThresholdBinaryInverse) MaximumValue ¶ added in v0.17.0
func (itbi *ImageThresholdBinaryInverse) MaximumValue() float32
MaximumValue returns the maximum value used to init the threshold filter
func (*ImageThresholdBinaryInverse) ThresholdValue ¶ added in v0.17.0
func (itbi *ImageThresholdBinaryInverse) ThresholdValue() float32
ThresholdValue returns the threshold value used to init the threshold filter
func (*ImageThresholdBinaryInverse) WithClipRect ¶ added in v0.17.0
func (itbi *ImageThresholdBinaryInverse) WithClipRect(clipRect metal.MTLRegion) *ImageThresholdBinaryInverse
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageThresholdBinaryInverse) WithOffset ¶ added in v0.17.0
func (itbi *ImageThresholdBinaryInverse) WithOffset(offset mpscore.MPSOffset) *ImageThresholdBinaryInverse
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageThresholdToZero ¶ added in v0.17.0
type ImageThresholdToZero struct {
UnaryImageKernel
}
ImageThresholdToZero is an idiomatic wrapper over the Objective-C class MPSImageThresholdToZero.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageThresholdToZeroFromID ¶ added in v0.17.0
func ImageThresholdToZeroFromID(id objc.ID) *ImageThresholdToZero
ImageThresholdToZeroFromID adopts an existing Objective-C object as a ImageThresholdToZero (nil for 0), retaining it and registering a release finalizer.
func NewImageThresholdToZero ¶ added in v0.17.0
func NewImageThresholdToZero() *ImageThresholdToZero
NewImageThresholdToZero creates a new ImageThresholdToZero.
func (*ImageThresholdToZero) ThresholdValue ¶ added in v0.17.0
func (ittz *ImageThresholdToZero) ThresholdValue() float32
ThresholdValue returns the threshold value used to init the threshold filter
func (*ImageThresholdToZero) WithClipRect ¶ added in v0.17.0
func (ittz *ImageThresholdToZero) WithClipRect(clipRect metal.MTLRegion) *ImageThresholdToZero
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageThresholdToZero) WithOffset ¶ added in v0.17.0
func (ittz *ImageThresholdToZero) WithOffset(offset mpscore.MPSOffset) *ImageThresholdToZero
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageThresholdToZeroInverse ¶ added in v0.17.0
type ImageThresholdToZeroInverse struct {
UnaryImageKernel
}
ImageThresholdToZeroInverse is an idiomatic wrapper over the Objective-C class MPSImageThresholdToZeroInverse.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageThresholdToZeroInverseFromID ¶ added in v0.17.0
func ImageThresholdToZeroInverseFromID(id objc.ID) *ImageThresholdToZeroInverse
ImageThresholdToZeroInverseFromID adopts an existing Objective-C object as a ImageThresholdToZeroInverse (nil for 0), retaining it and registering a release finalizer.
func NewImageThresholdToZeroInverse ¶ added in v0.17.0
func NewImageThresholdToZeroInverse() *ImageThresholdToZeroInverse
NewImageThresholdToZeroInverse creates a new ImageThresholdToZeroInverse.
func (*ImageThresholdToZeroInverse) ThresholdValue ¶ added in v0.17.0
func (ittzi *ImageThresholdToZeroInverse) ThresholdValue() float32
ThresholdValue returns the threshold value used to init the threshold filter
func (*ImageThresholdToZeroInverse) WithClipRect ¶ added in v0.17.0
func (ittzi *ImageThresholdToZeroInverse) WithClipRect(clipRect metal.MTLRegion) *ImageThresholdToZeroInverse
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageThresholdToZeroInverse) WithOffset ¶ added in v0.17.0
func (ittzi *ImageThresholdToZeroInverse) WithOffset(offset mpscore.MPSOffset) *ImageThresholdToZeroInverse
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageThresholdTruncate ¶ added in v0.17.0
type ImageThresholdTruncate struct {
UnaryImageKernel
}
ImageThresholdTruncate is an idiomatic wrapper over the Objective-C class MPSImageThresholdTruncate.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageThresholdTruncateFromID ¶ added in v0.17.0
func ImageThresholdTruncateFromID(id objc.ID) *ImageThresholdTruncate
ImageThresholdTruncateFromID adopts an existing Objective-C object as a ImageThresholdTruncate (nil for 0), retaining it and registering a release finalizer.
func NewImageThresholdTruncate ¶ added in v0.17.0
func NewImageThresholdTruncate() *ImageThresholdTruncate
NewImageThresholdTruncate creates a new ImageThresholdTruncate.
func (*ImageThresholdTruncate) ThresholdValue ¶ added in v0.17.0
func (itt *ImageThresholdTruncate) ThresholdValue() float32
ThresholdValue returns the threshold value used to init the threshold filter
func (*ImageThresholdTruncate) WithClipRect ¶ added in v0.17.0
func (itt *ImageThresholdTruncate) WithClipRect(clipRect metal.MTLRegion) *ImageThresholdTruncate
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageThresholdTruncate) WithOffset ¶ added in v0.17.0
func (itt *ImageThresholdTruncate) WithOffset(offset mpscore.MPSOffset) *ImageThresholdTruncate
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageTranspose ¶ added in v0.17.0
type ImageTranspose struct {
UnaryImageKernel
}
ImageTranspose is an idiomatic wrapper over the Objective-C class MPSImageTranspose.
It embeds UnaryImageKernel, promoting that type's methods.
func ImageTransposeFromID ¶ added in v0.17.0
func ImageTransposeFromID(id objc.ID) *ImageTranspose
ImageTransposeFromID adopts an existing Objective-C object as a ImageTranspose (nil for 0), retaining it and registering a release finalizer.
func NewImageTranspose ¶ added in v0.17.0
func NewImageTranspose() *ImageTranspose
NewImageTranspose creates a new ImageTranspose.
func (*ImageTranspose) WithClipRect ¶ added in v0.17.0
func (it *ImageTranspose) WithClipRect(clipRect metal.MTLRegion) *ImageTranspose
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*ImageTranspose) WithOffset ¶ added in v0.17.0
func (it *ImageTranspose) WithOffset(offset mpscore.MPSOffset) *ImageTranspose
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type ImageType ¶ added in v0.17.0
type ImageType uint32
const ( ImageType2d ImageType = 0 ImageType2d_array ImageType = 1 ImageTypeArray2d ImageType = 2 ImageTypeArray2d_array ImageType = 3 ImageType_ArrayMask ImageType = 1 ImageType_BatchMask ImageType = 2 ImageType_typeMask ImageType = 3 ImageType_noAlpha ImageType = 4 ImageType_texelFormatMask ImageType = 56 ImageType_texelFormatShift ImageType = 3 ImageType_texelFormatStandard ImageType = 0 ImageType_texelFormatUnorm8 ImageType = 8 ImageType_texelFormatFloat16 ImageType = 16 ImageType_texelFormatBFloat16 ImageType = 24 ImageType_bitCount ImageType = 6 ImageType_mask ImageType = 63 ImageType2d_noAlpha ImageType = 4 ImageType2d_array_noAlpha ImageType = 5 ImageTypeArray2d_noAlpha ImageType = 6 ImageTypeArray2d_array_noAlpha ImageType = 7 )
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type LaunchDataType ¶ added in v0.17.0
type LaunchDataType int32
const ( LaunchDataTypeDictionary LaunchDataType = 1 LaunchDataTypeArray LaunchDataType = 2 LaunchDataTypeFd LaunchDataType = 3 LaunchDataTypeInteger LaunchDataType = 4 LaunchDataTypeReal LaunchDataType = 5 LaunchDataTypeBool LaunchDataType = 6 LaunchDataTypeString LaunchDataType = 7 LaunchDataTypeOpaque LaunchDataType = 8 LaunchDataTypeErrno LaunchDataType = 9 LaunchDataTypeMachport LaunchDataType = 10 )
func (LaunchDataType) String ¶ added in v0.17.0
func (e LaunchDataType) String() string
String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.
type MDLabelDomain ¶
type MDLabelDomain int32
These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int32
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int32
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MPSImageHistogramInfo ¶
type MPSImageHistogramInfo struct {
NumberOfHistogramEntries uint
HistogramForAlpha bool
MinPixelValue unsafe.Pointer
MaxPixelValue unsafe.Pointer
}
Specifies information to compute the histogram for channels of an image.
type MPSImageKeypointData ¶
Specifies keypoint information.
type MPSImageKeypointRangeInfo ¶
Specifies information to find the keypoints in an image.
type MPSScaleTransform ¶ added in v0.18.0
type MPSScaleTransform struct {
ScaleX float64
ScaleY float64
TranslateX float64
TranslateY float64
}
Transform matrix for explict control over resampling in MPSImageScale. The MPSScaleTransform is equivalent to:
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MatrixCopyToImage ¶ added in v0.17.0
MatrixCopyToImage is an idiomatic wrapper over the Objective-C class MPSMatrixCopyToImage.
func MatrixCopyToImageFromID ¶ added in v0.17.0
func MatrixCopyToImageFromID(id objc.ID) *MatrixCopyToImage
MatrixCopyToImageFromID adopts an existing Objective-C object as a MatrixCopyToImage (nil for 0), retaining it and registering a release finalizer.
func NewMatrixCopyToImage ¶ added in v0.17.0
func NewMatrixCopyToImage() *MatrixCopyToImage
NewMatrixCopyToImage creates a new MatrixCopyToImage.
func (*MatrixCopyToImage) Description ¶ added in v0.17.0
func (mcti *MatrixCopyToImage) Description() string
Description returns the object's -description text.
func (*MatrixCopyToImage) IsEqual ¶ added in v0.17.0
func (mcti *MatrixCopyToImage) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*MatrixCopyToImage) IsKind ¶ added in v0.17.0
func (mcti *MatrixCopyToImage) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*MatrixCopyToImage) SourceMatrixBatchIndex ¶ added in v0.17.0
func (mcti *MatrixCopyToImage) SourceMatrixBatchIndex() int
SourceMatrixBatchIndex returns the index of the source matrix in the batch. This property is modifiable and defaults to 0 at initialization time.
func (*MatrixCopyToImage) SourceMatrixOrigin ¶ added in v0.17.0
func (mcti *MatrixCopyToImage) SourceMatrixOrigin() metal.MTLOrigin
SourceMatrixOrigin returns the origin, relative to [0, 0] in the source matrix. This property is modifiable and defaults to [0, 0] at initialization time. If a different origin is desired then this should be modified prior to encoding the kernel. The z value must be 0.
func (*MatrixCopyToImage) String ¶ added in v0.17.0
func (mcti *MatrixCopyToImage) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*MatrixCopyToImage) WithSourceMatrixBatchIndex ¶ added in v0.17.0
func (mcti *MatrixCopyToImage) WithSourceMatrixBatchIndex(sourceMatrixBatchIndex int) *MatrixCopyToImage
WithSourceMatrixBatchIndex sets the index of the source matrix in the batch. This property is modifiable and defaults to 0 at initialization time.
func (*MatrixCopyToImage) WithSourceMatrixOrigin ¶ added in v0.17.0
func (mcti *MatrixCopyToImage) WithSourceMatrixOrigin(sourceMatrixOrigin metal.MTLOrigin) *MatrixCopyToImage
WithSourceMatrixOrigin sets the origin, relative to [0, 0] in the source matrix. This property is modifiable and defaults to [0, 0] at initialization time. If a different origin is desired then this should be modified prior to encoding the kernel. The z value must be 0.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type UnaryImageKernel ¶ added in v0.17.0
UnaryImageKernel is an idiomatic wrapper over the Objective-C class MPSUnaryImageKernel.
UnaryImageKernel is an abstract base — you do not construct it directly. Construct one of ImageAreaMax, ImageBox, ImageCanny, ImageConversion, ImageConvolution, ImageDilate, ImageEuclideanDistanceTransform, ImageGaussianBlur, ImageHistogramEqualization, ImageHistogramSpecification, ImageIntegralOfSquares, ImageIntegral, ImageLaplacian, ImageMedian, ImagePyramid, ImageReduceUnary, ImageScale, ImageSobel, ImageStatisticsMeanAndVariance, ImageStatisticsMean, ImageStatisticsMinAndMax, ImageThresholdBinaryInverse, ImageThresholdBinary, ImageThresholdToZeroInverse, ImageThresholdToZero, ImageThresholdTruncate, ImageTranspose and pass it where a UnaryImageKernel is accepted.
func UnaryImageKernelFromID ¶ added in v0.17.0
func UnaryImageKernelFromID(id objc.ID) *UnaryImageKernel
UnaryImageKernelFromID adopts an existing Objective-C object as a UnaryImageKernel (nil for 0), retaining it and registering a release finalizer.
func (*UnaryImageKernel) ClipRect ¶ added in v0.17.0
func (uik *UnaryImageKernel) ClipRect() metal.MTLRegion
ClipRect returns an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*UnaryImageKernel) Description ¶ added in v0.17.0
func (uik *UnaryImageKernel) Description() string
Description returns the object's -description text.
func (*UnaryImageKernel) IsEqual ¶ added in v0.17.0
func (uik *UnaryImageKernel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*UnaryImageKernel) IsKind ¶ added in v0.17.0
func (uik *UnaryImageKernel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*UnaryImageKernel) Offset ¶ added in v0.17.0
func (uik *UnaryImageKernel) Offset() mpscore.MPSOffset
Offset returns the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
func (*UnaryImageKernel) SourceRegionForDestinationSize ¶ added in v0.17.0
func (uik *UnaryImageKernel) SourceRegionForDestinationSize(destinationSize metal.MTLSize) mpscore.MPSRegion
SourceRegionForDestinationSize sourceRegionForDestinationSize: is used to determine which region of the sourceTexture will be read by encodeToCommandBuffer:sourceTexture:destinationTexture (and similar) when the filter runs. This information may be needed if the source image is broken into multiple textures. The size of the full (untiled) destination image is provided. The region of the full (untiled) source image that will be read is returned. You can then piece together an appropriate texture containing that information for use in your tiled context. The function will consult the MPSUnaryImageKernel offset and clipRect parameters, to determine the full region read by the function. Other parameters such as sourceClipRect, kernelHeight and kernelWidth will be consulted as necessary. All properties should be set to intended values prior to calling sourceRegionForDestinationSize:. Caution: This function operates using global image coordinates, but -encodeToCommandBuffer:... uses coordinates local to the source and destination image textures. Consequently, the offset and clipRect attached to this object will need to be updated using a global to local coordinate transform before -encodeToCommandBuffer:... is called. Determine the region of the source texture that will be read for a encode operation
func (*UnaryImageKernel) String ¶ added in v0.17.0
func (uik *UnaryImageKernel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*UnaryImageKernel) WithClipRect ¶ added in v0.17.0
func (uik *UnaryImageKernel) WithClipRect(clipRect metal.MTLRegion) *UnaryImageKernel
WithClipRect sets an optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten. A MTLRegion that indicates which part of the destination to overwrite. If the clipRect does not lie completely within the destination image, the intersection between clip rectangle and destination bounds is used. Default: MPSRectNoClip (MPSKernel::MPSRectNoClip) indicating the entire image. See Also:
func (*UnaryImageKernel) WithOffset ¶ added in v0.17.0
func (uik *UnaryImageKernel) WithOffset(offset mpscore.MPSOffset) *UnaryImageKernel
WithOffset sets the position of the destination clip rectangle origin relative to the source buffer. The offset is defined to be the position of clipRect.origin in source coordinates. Default: {0,0,0}, indicating that the top left corners of the clipRect and source image align. See Also:
type UnaryImageKernelProvider ¶ added in v0.17.0
type UnaryImageKernelProvider interface {
objref.Object
// contains filtered or unexported methods
}
UnaryImageKernelProvider is accepted wherever a MPSUnaryImageKernel (or one of its subclasses) is expected.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.
Source Files
¶
- MPSBinaryImageKernel_generated.go
- MPSImageAdd_generated.go
- MPSImageAreaMax_generated.go
- MPSImageAreaMin_generated.go
- MPSImageArithmetic_generated.go
- MPSImageBilinearScale_generated.go
- MPSImageBox_generated.go
- MPSImageCanny_generated.go
- MPSImageConversion_generated.go
- MPSImageConvolution_generated.go
- MPSImageCopyToMatrix_generated.go
- MPSImageDilate_generated.go
- MPSImageDivide_generated.go
- MPSImageEDLines_generated.go
- MPSImageErode_generated.go
- MPSImageEuclideanDistanceTransform_generated.go
- MPSImageFindKeypoints_generated.go
- MPSImageGaussianBlur_generated.go
- MPSImageGaussianPyramid_generated.go
- MPSImageGuidedFilter_generated.go
- MPSImageHistogramEqualization_generated.go
- MPSImageHistogramSpecification_generated.go
- MPSImageHistogram_generated.go
- MPSImageIntegralOfSquares_generated.go
- MPSImageIntegral_generated.go
- MPSImageLanczosScale_generated.go
- MPSImageLaplacianPyramidAdd_generated.go
- MPSImageLaplacianPyramidSubtract_generated.go
- MPSImageLaplacianPyramid_generated.go
- MPSImageLaplacian_generated.go
- MPSImageMedian_generated.go
- MPSImageMultiply_generated.go
- MPSImageNormalizedHistogram_generated.go
- MPSImagePyramid_generated.go
- MPSImageReduceColumnMax_generated.go
- MPSImageReduceColumnMean_generated.go
- MPSImageReduceColumnMin_generated.go
- MPSImageReduceColumnSum_generated.go
- MPSImageReduceRowMax_generated.go
- MPSImageReduceRowMean_generated.go
- MPSImageReduceRowMin_generated.go
- MPSImageReduceRowSum_generated.go
- MPSImageReduceUnary_generated.go
- MPSImageScale_generated.go
- MPSImageSobel_generated.go
- MPSImageStatisticsMeanAndVariance_generated.go
- MPSImageStatisticsMean_generated.go
- MPSImageStatisticsMinAndMax_generated.go
- MPSImageSubtract_generated.go
- MPSImageTent_generated.go
- MPSImageThresholdBinaryInverse_generated.go
- MPSImageThresholdBinary_generated.go
- MPSImageThresholdToZeroInverse_generated.go
- MPSImageThresholdToZero_generated.go
- MPSImageThresholdTruncate_generated.go
- MPSImageTranspose_generated.go
- MPSMatrixCopyToImage_generated.go
- MPSUnaryImageKernel_generated.go
- doc.go
- mpsimage_classmethods_generated.go
- mpsimage_enums_generated.go
- mpsimage_providers_generated.go
- mpsimage_runtime_generated.go
- mpsimage_structs_generated.go