This repository has been archived by the owner on Feb 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rgiduthuri
authored and
rgiduthuri
committed
Feb 29, 2016
0 parents
commit 7538247
Showing
82 changed files
with
21,768 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (c) 2015 Advanced Micro Devices, Inc. All rights reserved. | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in | ||
# all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
# THE SOFTWARE. | ||
|
||
cmake_minimum_required (VERSION 3.1) | ||
project (amdovx-modules) | ||
|
||
add_subdirectory (vx_ext_cv) |
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,21 @@ | ||
# AMD OpenVX modules (amdovx-modules) | ||
Each subfolder contains a separate OpenVX module. Look into the subfolder for more details of individual module pre-requisites and special build setup requirements. | ||
|
||
The current release verion is 0.9 (beta preview). | ||
|
||
## List of modules | ||
* **vx_ext_cv**: OpenVX module that implemented a mechanism to access OpenCV functionality as OpenVX kernels | ||
|
||
## Build Instructions | ||
|
||
#### Pre-requisites | ||
* OpenCV 3.0 [download](http://opencv.org/downloads.html). | ||
* CMake 3.1 or newer [download](http://cmake.org/download/). | ||
* Download and build [amdovx-core](https://github.com/GPUOpen-ProfessionalCompute-Libraries/amdovx-core) project at the same level folder as amdovx-modules build folder | ||
* OpenCV_DIR environment variable should point to OpenCV/build folder | ||
|
||
#### Build using Visual Studio Professional 2013 on 64-bit Windows 10/8.1/7 | ||
* Use amdovx-modules/amdovx-solution.sln to build for x64 platform | ||
|
||
#### Build using CMake on Linux (Ubuntu 15.10 64-bit) | ||
* Use CMake to configure and generate Makefile |
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,22 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 2013 | ||
VisualStudioVersion = 12.0.31101.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vx_ext_cv", "vx_ext_cv\vx_ext_cv.vcxproj", "{C5F3ED68-728A-4610-A37F-89323A93DD81}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|x64 = Debug|x64 | ||
Release|x64 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{C5F3ED68-728A-4610-A37F-89323A93DD81}.Debug|x64.ActiveCfg = Debug|x64 | ||
{C5F3ED68-728A-4610-A37F-89323A93DD81}.Debug|x64.Build.0 = Debug|x64 | ||
{C5F3ED68-728A-4610-A37F-89323A93DD81}.Release|x64.ActiveCfg = Release|x64 | ||
{C5F3ED68-728A-4610-A37F-89323A93DD81}.Release|x64.Build.0 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
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,114 @@ | ||
# Copyright (c) 2015 Advanced Micro Devices, Inc. All rights reserved. | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in | ||
# all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
# THE SOFTWARE. | ||
|
||
cmake_minimum_required (VERSION 3.1) | ||
project (vx_ext_cv) | ||
|
||
set (CMAKE_CXX_STANDARD 11) | ||
|
||
find_package (OpenCV REQUIRED) | ||
find_package (OpenCL) | ||
|
||
include_directories (include) | ||
|
||
list (APPEND SOURCES | ||
OpenCV_absdiff.cpp | ||
OpenCV_adaptiveThreshold.cpp | ||
OpenCV_add.cpp | ||
OpenCV_AddWeighted.cpp | ||
OpenCV_bilateralFilter.cpp | ||
OpenCV_bitwise_and.cpp | ||
OpenCV_bitwise_not.cpp | ||
OpenCV_bitwise_or.cpp | ||
OpenCV_bitwise_xor.cpp | ||
OpenCV_Blur.cpp | ||
OpenCV_Boxfilter.cpp | ||
OpenCV_brisk_compute.cpp | ||
OpenCV_BRISK_detector.cpp | ||
OpenCV_buildOpticalFlowPyramid.cpp | ||
OpenCV_buildPyramid.cpp | ||
OpenCV_Canny.cpp | ||
OpenCV_compare.cpp | ||
OpenCV_convertScaleAbs.cpp | ||
OpenCV_cornerHarris.cpp | ||
OpenCV_cornerMinEigenVal.cpp | ||
OpenCV_countNonZero.cpp | ||
OpenCV_cvtColor.cpp | ||
OpenCV_data_translator.cpp | ||
OpenCV_dilate.cpp | ||
OpenCV_distanceTransform.cpp | ||
OpenCV_divide.cpp | ||
OpenCV_erode.cpp | ||
OpenCV_FAST_feature_detector.cpp | ||
OpenCV_fastNlMeansDenoising.cpp | ||
OpenCV_fastNlMeansDenoisingColored.cpp | ||
OpenCV_filter2D.cpp | ||
OpenCV_flip.cpp | ||
OpenCV_Gaussianblur.cpp | ||
OpenCV_Good_Features_to_Track_detector.cpp | ||
OpenCV_integral.cpp | ||
OpenCV_Laplacian.cpp | ||
OpenCV_Medianblur.cpp | ||
OpenCV_morphologyEx.cpp | ||
OpenCV_MSER_feature_detector.cpp | ||
OpenCV_multiply.cpp | ||
OpenCV_norm.cpp | ||
OpenCV_orb_compute.cpp | ||
OpenCV_ORB_detector.cpp | ||
OpenCV_pyrdown.cpp | ||
OpenCV_pyrup.cpp | ||
OpenCV_resize.cpp | ||
OpenCV_Scharr.cpp | ||
OpenCV_sepFilter2D.cpp | ||
OpenCV_SIFT_Compute.cpp | ||
OpenCV_SIFT_Detect.cpp | ||
OpenCV_simple_blob_detector.cpp | ||
OpenCV_Sobel.cpp | ||
OpenCV_Star_feature_detector.cpp | ||
OpenCV_subtract.cpp | ||
OpenCV_SURF_Compute.cpp | ||
OpenCV_SURF_Detect.cpp | ||
OpenCV_threshold.cpp | ||
OpenCV_transpose.cpp | ||
OpenCV_VX_Nodes.cpp | ||
OpenCV_warpAffine.cpp | ||
OpenCV_warpPerspective.cpp | ||
publishkernels.cpp | ||
) | ||
|
||
add_library(vx_ext_cv SHARED ${SOURCES}) | ||
target_link_libraries(vx_ext_cv ${OpenVX_LIBRARY}) | ||
|
||
include_directories(${OpenCV_INCLUDE_DIRS}) | ||
target_link_libraries(vx_ext_cv ${OpenCV_LIBRARIES}) | ||
target_compile_definitions(vx_ext_cv PUBLIC USE_OPENCV_CONTRIB=0) | ||
|
||
if (OpenCL_FOUND) | ||
include_directories(${OpenCL_INCLUDE_DIRS}) | ||
target_link_libraries(vx_ext_cv ${OpenCL_LIBRARIES}) | ||
endif(OpenCL_FOUND) | ||
|
||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdata-sections") | ||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") | ||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT") | ||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd") | ||
endif() | ||
|
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,19 @@ | ||
Copyright (c) 2015 Advanced Micro Devices, Inc. All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
Oops, something went wrong.