Skip to content

Commit 701cf6d

Browse files
committed
Updated xfOpenCV 2019.1 version
1 parent d619711 commit 701cf6d

File tree

966 files changed

+63799
-12915
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

966 files changed

+63799
-12915
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.db

HLS_Use_Model/AXI_Sample/script.tcl

Lines changed: 0 additions & 18 deletions
This file was deleted.
-1.11 MB
Binary file not shown.

HLS_Use_Model/AXI_Sample/xf_config_params.h

Lines changed: 0 additions & 16 deletions
This file was deleted.

HLS_Use_Model/AXI_Sample/xf_ip_accel_app.cpp

Lines changed: 0 additions & 24 deletions
This file was deleted.
-1.15 MB
Binary file not shown.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#***************************************************************************
2+
# Copyright (c) 2019, Xilinx, Inc.
3+
# All rights reserved.
4+
5+
# Redistribution and use in source and binary forms, with or without modification,
6+
# are permitted provided that the following conditions are met:
7+
8+
# 1. Redistributions of source code must retain the above copyright notice,
9+
# this list of conditions and the following disclaimer.
10+
11+
# 2. Redistributions in binary form must reproduce the above copyright notice,
12+
# this list of conditions and the following disclaimer in the documentation
13+
# and/or other materials provided with the distribution.
14+
15+
# 3. Neither the name of the copyright holder nor the names of its contributors
16+
# may be used to endorse or promote products derived from this software
17+
# without specific prior written permission.
18+
19+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20+
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21+
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22+
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24+
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25+
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
27+
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28+
29+
#***************************************************************************/
30+
31+
32+
############################################################
33+
## Copyright (C) 1986-2019 Xilinx, Inc. All Rights Reserved.
34+
############################################################
35+
open_project dilation_project
36+
set_top ip_accel_app
37+
add_files ./xf_ip_accel_app.cpp -cflags "-D__SDSVHLS__ -I../../include --std=c++0x"
38+
add_files ./xf_dilation_accel.cpp -cflags "-D__SDSVHLS__ -I../../include --std=c++0x"
39+
add_files -tb ./testcase55.jpg
40+
add_files -tb ./xf_dilation_tb.cpp -cflags "-D__SDSVHLS__ -I../../include --std=c++0x"
41+
open_solution "solution1"
42+
set_part {xczu9eg-ffvb1156-2-i} -tool vivado
43+
create_clock -period 10 -name default
44+
#source "./dilation_color/solution1/directives.tcl"
45+
csim_design -argv {testcase55.jpg} -clean -compiler gcc
46+
csynth_design
47+
cosim_design -argv {testcase55.jpg}
48+
#export_design -format ip_catalog
49+
754 KB
Loading

examples/warpaffine/xf_warpaffine_accel.cpp renamed to HLS_Use_Model/Standalone_HLS_AXI_Example/xf_config_params.h

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/***************************************************************************
2-
Copyright (c) 2018, Xilinx, Inc.
2+
Copyright (c) 2019, Xilinx, Inc.
33
All rights reserved.
44
55
Redistribution and use in source and binary forms, with or without modification,
@@ -28,17 +28,18 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
2929
***************************************************************************/
3030

31+
/* Optimization type */
32+
#define RO 0 // Resource Optimized (8-pixel implementation)
33+
#define NO 1 // Normal Operation (1-pixel implementation)
3134

32-
#include "xf_warpaffine_config.h"
35+
36+
#define GRAY 1
37+
38+
#define FILTER_SIZE 3
39+
40+
#define KERNEL_SHAPE XF_SHAPE_CROSS
41+
42+
#define ITERATIONS 1
3343

3444

35-
void warpaffine_accel(xf::Mat<XF_8UC1, HEIGHT, WIDTH, XF_NPPC8> &imgInput,xf::Mat<XF_8UC1, HEIGHT, WIDTH, XF_NPPC8> &imgOutput,float *transform_matrix)
36-
{
37-
#if NO
38-
xf::warpAffine<INTER_POLATION, XF_8UC1, HEIGHT, WIDTH, XF_NPPC1>(imgInput, imgOutput, transform_matrix);
39-
#endif
40-
#if RO
41-
xf::warpAffine<INTER_POLATION, XF_8UC1, HEIGHT, WIDTH, XF_NPPC8>(imgInput, imgOutput, transform_matrix);
42-
#endif
43-
}
4445

HLS_Use_Model/AXI_Sample/xf_dilation_accel.cpp renamed to HLS_Use_Model/Standalone_HLS_AXI_Example/xf_dilation_accel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/***************************************************************************
2-
Copyright (c) 2018, Xilinx, Inc.
2+
Copyright (c) 2019, Xilinx, Inc.
33
All rights reserved.
44
55
Redistribution and use in source and binary forms, with or without modification,
@@ -34,6 +34,6 @@ void dilation_accel(xf::Mat<TYPE, HEIGHT, WIDTH, NPC1> &_src,xf::Mat<TYPE, HEIGH
3434
{
3535

3636

37-
xf::dilate<XF_BORDER_REPLICATE, TYPE ,HEIGHT, WIDTH, KERNEL_SHAPE, FILTER_SIZE, FILTER_SIZE, ITERATIONS, NPC1>(_src, _dst, kernel);
37+
xf::dilate<XF_BORDER_CONSTANT, TYPE ,HEIGHT, WIDTH, KERNEL_SHAPE, FILTER_SIZE, FILTER_SIZE, ITERATIONS, NPC1>(_src, _dst,kernel);
3838

3939
}

0 commit comments

Comments
 (0)