Skip to content

Commit 6acbcfa

Browse files
committed
Add img-mat converter ops
1 parent 89b128d commit 6acbcfa

2 files changed

Lines changed: 186 additions & 0 deletions

File tree

scijava-ops-opencv/opencv-ops.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,52 @@ authors:
44
- "OpenCV authors"
55
- "bytedeco/JavaCV authors"
66

7+
net.imagej.opencv.ImgToMatConverter:
8+
getUnsignedByteMat:
9+
alias: "engine.adapt"
10+
authors: "Gabriella Turek"
11+
getByteMat:
12+
alias: "engine.adapt"
13+
authors: "Gabriella Turek"
14+
getIntMat:
15+
alias: "engine.adapt"
16+
authors: "Gabriella Turek"
17+
getFloatMat:
18+
alias: "engine.adapt"
19+
authors: "Gabriella Turek"
20+
getDoubleMat:
21+
alias: "engine.adapt"
22+
authors: "Gabriella Turek"
23+
24+
net.imagej.opencv.MatToImgConverter:
25+
toUnsignedByteImg:
26+
alias: "engine.adapt"
27+
authors: "Gabriella Turek"
28+
toByteImg:
29+
alias: "engine.adapt"
30+
authors: "Gabriella Turek"
31+
toIntImg:
32+
alias: "engine.adapt"
33+
authors: "Gabriella Turek"
34+
toFloatImg:
35+
alias: "engine.adapt"
36+
authors: "Gabriella Turek"
37+
toDoubleImg:
38+
alias: "engine.adapt"
39+
authors: "Gabriella Turek"
40+
toByteArray:
41+
alias: "engine.adapt"
42+
authors: "Gabriella Turek"
43+
toIntArray:
44+
alias: "engine.adapt"
45+
authors: "Gabriella Turek"
46+
toFloatArray:
47+
alias: "engine.adapt"
48+
authors: "Gabriella Turek"
49+
toDoubleArray:
50+
alias: "engine.adapt"
51+
authors: "Gabriella Turek"
52+
753
org.bytedeco.opencv.global.opencv_imgproc:
854
medianBlur:
955
alias: "filter.median"

scijava-ops-opencv/src/main/resources/op.yaml

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,143 @@
1+
- op:
2+
names: [engine.adapt, cv.getUnsignedByteMat]
3+
description: ''
4+
source: javaMethod:/net.imagej.opencv.ImgToMatConverter.getUnsignedByteMat%28net.imglib2.RandomAccessibleInterval%29
5+
priority: 0.0
6+
version: '1'
7+
parameters:
8+
- {parameter type: INPUT, name: arg0, description: '', type: net.imglib2.RandomAccessibleInterval}
9+
authors: [Gabriella Turek]
10+
tags: {}
11+
- op:
12+
names: [engine.adapt, cv.getByteMat]
13+
description: ''
14+
source: javaMethod:/net.imagej.opencv.ImgToMatConverter.getByteMat%28net.imglib2.RandomAccessibleInterval%29
15+
priority: 0.0
16+
version: '1'
17+
parameters:
18+
- {parameter type: INPUT, name: arg0, description: '', type: net.imglib2.RandomAccessibleInterval}
19+
authors: [Gabriella Turek]
20+
tags: {}
21+
- op:
22+
names: [engine.adapt, cv.getIntMat]
23+
description: ''
24+
source: javaMethod:/net.imagej.opencv.ImgToMatConverter.getIntMat%28net.imglib2.RandomAccessibleInterval%29
25+
priority: 0.0
26+
version: '1'
27+
parameters:
28+
- {parameter type: INPUT, name: arg0, description: '', type: net.imglib2.RandomAccessibleInterval}
29+
authors: [Gabriella Turek]
30+
tags: {}
31+
- op:
32+
names: [engine.adapt, cv.getFloatMat]
33+
description: ''
34+
source: javaMethod:/net.imagej.opencv.ImgToMatConverter.getFloatMat%28net.imglib2.RandomAccessibleInterval%29
35+
priority: 0.0
36+
version: '1'
37+
parameters:
38+
- {parameter type: INPUT, name: arg0, description: '', type: net.imglib2.RandomAccessibleInterval}
39+
authors: [Gabriella Turek]
40+
tags: {}
41+
- op:
42+
names: [engine.adapt, cv.getDoubleMat]
43+
description: ''
44+
source: javaMethod:/net.imagej.opencv.ImgToMatConverter.getDoubleMat%28net.imglib2.RandomAccessibleInterval%29
45+
priority: 0.0
46+
version: '1'
47+
parameters:
48+
- {parameter type: INPUT, name: arg0, description: '', type: net.imglib2.RandomAccessibleInterval}
49+
authors: [Gabriella Turek]
50+
tags: {}
51+
- op:
52+
names: [engine.adapt, cv.toUnsignedByteImg]
53+
description: ''
54+
source: javaMethod:/net.imagej.opencv.MatToImgConverter.toUnsignedByteImg%28org.bytedeco.opencv.opencv_core.Mat%29
55+
priority: 0.0
56+
version: '1'
57+
parameters:
58+
- {parameter type: INPUT, name: arg0, description: '', type: org.bytedeco.opencv.opencv_core.Mat}
59+
authors: [Gabriella Turek]
60+
tags: {}
61+
- op:
62+
names: [engine.adapt, cv.toByteImg]
63+
description: ''
64+
source: javaMethod:/net.imagej.opencv.MatToImgConverter.toByteImg%28org.bytedeco.opencv.opencv_core.Mat%29
65+
priority: 0.0
66+
version: '1'
67+
parameters:
68+
- {parameter type: INPUT, name: arg0, description: '', type: org.bytedeco.opencv.opencv_core.Mat}
69+
authors: [Gabriella Turek]
70+
tags: {}
71+
- op:
72+
names: [engine.adapt, cv.toIntImg]
73+
description: ''
74+
source: javaMethod:/net.imagej.opencv.MatToImgConverter.toIntImg%28org.bytedeco.opencv.opencv_core.Mat%29
75+
priority: 0.0
76+
version: '1'
77+
parameters:
78+
- {parameter type: INPUT, name: arg0, description: '', type: org.bytedeco.opencv.opencv_core.Mat}
79+
authors: [Gabriella Turek]
80+
tags: {}
81+
- op:
82+
names: [engine.adapt, cv.toFloatImg]
83+
description: ''
84+
source: javaMethod:/net.imagej.opencv.MatToImgConverter.toFloatImg%28org.bytedeco.opencv.opencv_core.Mat%29
85+
priority: 0.0
86+
version: '1'
87+
parameters:
88+
- {parameter type: INPUT, name: arg0, description: '', type: org.bytedeco.opencv.opencv_core.Mat}
89+
authors: [Gabriella Turek]
90+
tags: {}
91+
- op:
92+
names: [engine.adapt, cv.toDoubleImg]
93+
description: ''
94+
source: javaMethod:/net.imagej.opencv.MatToImgConverter.toDoubleImg%28org.bytedeco.opencv.opencv_core.Mat%29
95+
priority: 0.0
96+
version: '1'
97+
parameters:
98+
- {parameter type: INPUT, name: arg0, description: '', type: org.bytedeco.opencv.opencv_core.Mat}
99+
authors: [Gabriella Turek]
100+
tags: {}
101+
- op:
102+
names: [engine.adapt, cv.toByteArray]
103+
description: ''
104+
source: javaMethod:/net.imagej.opencv.MatToImgConverter.toByteArray%28org.bytedeco.opencv.opencv_core.Mat%29
105+
priority: 0.0
106+
version: '1'
107+
parameters:
108+
- {parameter type: INPUT, name: arg0, description: '', type: org.bytedeco.opencv.opencv_core.Mat}
109+
authors: [Gabriella Turek]
110+
tags: {}
111+
- op:
112+
names: [engine.adapt, cv.toIntArray]
113+
description: ''
114+
source: javaMethod:/net.imagej.opencv.MatToImgConverter.toIntArray%28org.bytedeco.opencv.opencv_core.Mat%29
115+
priority: 0.0
116+
version: '1'
117+
parameters:
118+
- {parameter type: INPUT, name: arg0, description: '', type: org.bytedeco.opencv.opencv_core.Mat}
119+
authors: [Gabriella Turek]
120+
tags: {}
121+
- op:
122+
names: [engine.adapt, cv.toFloatArray]
123+
description: ''
124+
source: javaMethod:/net.imagej.opencv.MatToImgConverter.toFloatArray%28org.bytedeco.opencv.opencv_core.Mat%29
125+
priority: 0.0
126+
version: '1'
127+
parameters:
128+
- {parameter type: INPUT, name: arg0, description: '', type: org.bytedeco.opencv.opencv_core.Mat}
129+
authors: [Gabriella Turek]
130+
tags: {}
131+
- op:
132+
names: [engine.adapt, cv.toDoubleArray]
133+
description: ''
134+
source: javaMethod:/net.imagej.opencv.MatToImgConverter.toDoubleArray%28org.bytedeco.opencv.opencv_core.Mat%29
135+
priority: 0.0
136+
version: '1'
137+
parameters:
138+
- {parameter type: INPUT, name: arg0, description: '', type: org.bytedeco.opencv.opencv_core.Mat}
139+
authors: [Gabriella Turek]
140+
tags: {}
1141
- op:
2142
names: [filter.median, cv.medianBlur]
3143
description: ''

0 commit comments

Comments
 (0)