forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconvolution_protocol.gen.go
113 lines (91 loc) · 3.1 KB
/
convolution_protocol.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// Code generated by DarwinKit. DO NOT EDIT.
package coreimage
import (
"github.com/progrium/darwinkit/objc"
)
// The properties you use to configure a convolution filter. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution?language=objc
type PConvolution interface {
// optional
SetWeights(value Vector)
HasSetWeights() bool
// optional
Weights() Vector
HasWeights() bool
// optional
SetBias(value float32)
HasSetBias() bool
// optional
Bias() float32
HasBias() bool
// optional
SetInputImage(value Image)
HasSetInputImage() bool
// optional
InputImage() Image
HasInputImage() bool
}
// ensure impl type implements protocol interface
var _ PConvolution = (*ConvolutionObject)(nil)
// A concrete type for the [PConvolution] protocol.
type ConvolutionObject struct {
objc.Object
}
func (c_ ConvolutionObject) HasSetWeights() bool {
return c_.RespondsToSelector(objc.Sel("setWeights:"))
}
// The convolution kernel. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228187-weights?language=objc
func (c_ ConvolutionObject) SetWeights(value Vector) {
objc.Call[objc.Void](c_, objc.Sel("setWeights:"), value)
}
func (c_ ConvolutionObject) HasWeights() bool {
return c_.RespondsToSelector(objc.Sel("weights"))
}
// The convolution kernel. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228187-weights?language=objc
func (c_ ConvolutionObject) Weights() Vector {
rv := objc.Call[Vector](c_, objc.Sel("weights"))
return rv
}
func (c_ ConvolutionObject) HasSetBias() bool {
return c_.RespondsToSelector(objc.Sel("setBias:"))
}
// A value that’s added to each output pixel. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228185-bias?language=objc
func (c_ ConvolutionObject) SetBias(value float32) {
objc.Call[objc.Void](c_, objc.Sel("setBias:"), value)
}
func (c_ ConvolutionObject) HasBias() bool {
return c_.RespondsToSelector(objc.Sel("bias"))
}
// A value that’s added to each output pixel. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228185-bias?language=objc
func (c_ ConvolutionObject) Bias() float32 {
rv := objc.Call[float32](c_, objc.Sel("bias"))
return rv
}
func (c_ ConvolutionObject) HasSetInputImage() bool {
return c_.RespondsToSelector(objc.Sel("setInputImage:"))
}
// The image to use as an input image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228186-inputimage?language=objc
func (c_ ConvolutionObject) SetInputImage(value Image) {
objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), value)
}
func (c_ ConvolutionObject) HasInputImage() bool {
return c_.RespondsToSelector(objc.Sel("inputImage"))
}
// The image to use as an input image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228186-inputimage?language=objc
func (c_ ConvolutionObject) InputImage() Image {
rv := objc.Call[Image](c_, objc.Sel("inputImage"))
return rv
}