-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test - Updates * AMDGPU_TARGETS - Updates * CTest - Updates * CTest - Fix * CMakeLists - Revert GFX updates
- Loading branch information
1 parent
d2853a4
commit 638ecd5
Showing
3 changed files
with
93 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# create input and output images | ||
data input = image:480,360,RGB2 | ||
data output = image:480,360,U008 | ||
|
||
# compute luma image channel from input RGB image | ||
data yuv = image-virtual:0,0,IYUV | ||
data luma = image-virtual:0,0,U008 | ||
node org.khronos.openvx.color_convert input yuv | ||
node org.khronos.openvx.channel_extract yuv !CHANNEL_Y luma | ||
|
||
# compute edges in luma image using Canny edge detector | ||
data hyst = threshold:RANGE,U008,U008:INIT,80,100 | ||
data gradient_size = scalar:INT32,3 | ||
node org.khronos.openvx.canny_edge_detector luma hyst gradient_size !NORM_L1 output |