You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 16, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: runvx/README.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -288,18 +288,18 @@ This project uses OpenCV for camera capture and image display.
288
288
Here are few examples that demonstrate use of RUNVX prototyping tool.
289
289
290
290
### Canny Edge Detector
291
-
This example demonstrates building OpenVX graph for Canny edge detector. Use [raja-koduri-640x480.jpg](http://cdn5.applesencia.com/wp-content/blogs.dir/17/files/2013/04/raja-koduri-640x480.jpg) for this example.
291
+
This example demonstrates building OpenVX graph for Canny edge detector. Use [face1.jpg](https://github.com/GPUOpen-ProfessionalCompute-Libraries/amdovx-core/blob/master/examples/images/face1.jpg) for this example.
292
292
293
293
% runvx[.exe] file canny.gdf
294
294
295
295
File **canny.gdf**:
296
296
297
297
# create input and output images
298
-
data input = image:640,480,RGB2
299
-
data output = image:640,480,U008
298
+
data input = image:480,360,RGB2
299
+
data output = image:480,360,U008
300
300
301
301
# specify input source for input image and request for displaying input and output images
This example demonstrates building OpenVX graph for pixel-based skin tone detector [Peer et al. 2003]. Use [raja-koduri-640x480.jpg](http://cdn5.applesencia.com/wp-content/blogs.dir/17/files/2013/04/raja-koduri-640x480.jpg) for this example.
318
+
This example demonstrates building OpenVX graph for pixel-based skin tone detector [Peer et al. 2003]. Use [face1.jpg](https://github.com/GPUOpen-ProfessionalCompute-Libraries/amdovx-core/blob/master/examples/images/face1.jpg) for this example.
319
319
320
320
% runvx[.exe] file skintonedetect.gdf
321
321
322
322
File **skintonedetect.gdf**:
323
323
324
324
# create input and output images
325
-
data input = image:640,480,RGB2
326
-
data output = image:640,480,U008
327
-
325
+
data input = image:480,360,RGB2
326
+
data output = image:480,360,U008
327
+
328
328
# specify input source for input image and request for displaying input and output images
329
-
read input raja-koduri-640x480.jpg
329
+
read input examples/images/face1.jpg
330
330
view input inputWindow
331
331
view output skintoneWindow
332
-
332
+
333
333
# threshold objects
334
334
data thr95 = threshold:BINARY,UINT8:INIT,95 # threshold for computing R > 95
335
335
data thr40 = threshold:BINARY,UINT8:INIT,40 # threshold for computing G > 40
336
336
data thr20 = threshold:BINARY,UINT8:INIT,20 # threshold for computing B > 20
337
337
data thr15 = threshold:BINARY,UINT8:INIT,15 # threshold for computing R-G > 15
338
338
data thr0 = threshold:BINARY,UINT8:INIT,0 # threshold for computing R-B > 0
0 commit comments