UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
241 Views
Registered: ‎05-02-2011

how can I add the sobel filter to revision environment?

hi all:

I  download the ZCU104_revision

and SDX 2018.3

How can I modify the filter2D to sobelfilter  ??

 

 

by miter

0 Kudos
1 Reply
Contributor
Contributor
156 Views
Registered: ‎02-06-2019

Re: how can I add the sobel filter to revision environment?

filter2d contains a bunch of filter example in one packet. 

You can find the list of filters (including sobel) on the main.c under the "gstdemo" application as a "GstSdxfilter2dFilterPreset" enumeration.

Screenshot (119).png 

To using that filter in the example, You can change the "FILTERPRESET" definition on line 76 with "GST_SDXFILTER2D_PRESET_VSOBEL" before the building application.

Screenshot (120).PNG

or simply use that command:

gst-launch-1.0 \
xlnxvideosrc src-type="usbcam" ! \
"video/x-raw, width=1920, height=1080, format=UYVY" ! \
sdxfilter2d filter-preset=10 filter-mode=1 ! queue ! \
kmssink bus-id=b00c0000.v_mix plane-id=31

 instead of "./gstdemo"

0 Kudos