This section describes using thexfOpenCVlibrary in the SDx development environment.
Note:The instructions in this section assume that you have downloaded and installed all the required packages. For more information, see the
Prerequisites.
Use the following steps to run a unit test for bilateral filter on zcu102_es2_reVISION:
Launch the SDx development environment using the desktop icon or theStartmenu.
The
Workspace Launcherdialog appears.
ClickBrowseto enter a workspace folder used to store your projects (you can use workspace folders to organize your work), then clickOKto dismiss theWorkspace Launcherdialog.
Note:Before launching the SDx IDE on Linux, ensure that you use the same shell that you have used to set the
$SYSROOTenvironment variable. This is usually the file path to the Linux root file system.
The SDx development environment window opens with the
Welcometab visible when you create a new workspace. The
Welcometab can be closed by clicking the
Xicon or minimized if you do not wish to use it.
SelectFile>New>Xilinx SDx Project.from the SDx development environment menu bar.
The
New Projectdialog box opens.
Specify the name of the project. For exampleBilateral.
ClickNext.
The the
Choose Hardware Platformpage appears.
From theChoose Hardware Platformpage, click theAdd Custom Platformbutton.
Browse to the directory where you extracted the reVISION platform files. Ensure that you select thezcu102_es2_reVISIONfolder.
From theChoose Hardware Platformpage, selectzcu102_es2_reVISION (custom).
ClickNext.
The
Templatespage appears, containing source code examples for the selected platform.
From the list of application templates, selectbilateral - File I/Oand clickFinish.
Click theActive build configurationsdrop-down from theSDx Project Settingswindow, to select the active configuration or create a build configuration.
The standard build configurations are Debug and Release. To get the best runtime performance, switch to use theReleasebuild configuration as it uses a higher compiler optimization setting than the Debug build configuration.
Figure:SDx Project Settings - Active Build Configuration
Set theData motion network clock frequency (MHz)to the required frequency, on theSDx Project Settingspage.