Comments (3)
The code in this tutorial in not correct. Please have a look at the source code of function erode, it is defined as:
void erode (xf::Mat<TYPE, ROWS, COLS, NPC> & _src, xf::Mat<TYPE, ROWS, COLS, NPC> & _dst,unsigned char _kernel[K_ROWS*K_COLS])
There are 3 parameters in the function, however the code in the tutorial only calls the erode with 2 parameters. You should edit the code to as following:
xf::erode<XF_BORDER_CONSTANT, XF_8UC1, HEIGHT, WIDTH, XF_SHAPE_RECT, 3,3,1,XF_NPPC1>(_range, _erode,kernal);
Add the 3rd parameter in the function call, the varialbe kernal is a 3*3 matrix, and I set all the element value to 1
from sdsoc-tutorials.
Are you using the tutorial with the 2018.3 release of the reVISION platform and xfOpenCV library? If so, then you'd be needing to stay with the 2018.2 release of the platform and library. The tutorial is getting a major rework right now for 2018.3. The xfOpenCV library had gotten some major work done in 2018.3 with the function definitions and as you pointed out the kernel parameter.
from sdsoc-tutorials.
Thanks for your help. I have already seen that difference.
from sdsoc-tutorials.
Related Issues (20)
- write_dsa failed HOT 10
- Lab 2 Step 4/5 HOT 1
- fatal error:fatal error: xil_io.h: No such file or directory HOT 4
- Error in step 2 of Lab 2: Performance Estimation HOT 2
- Error while launching program - Lab 6 (getting start tut.) HOT 2
- SDSoC 2018.3 create software components HOT 5
- Can't find xfFunctions in lab-1-migrate-opencv-to-xfopencv
- Warnings in Lab3 while building sdx_app1 HOT 1
- ERROR: [VPL-4] Design failed to meet timing.
- Is the custom platform created and added in the repository in lab 3 able to be used in a new workspace? HOT 2
- Question regarding Clocking Wizard IP reset type in “SDSoC Platform Creation Labs > Lab 1”
- Question regarding setting root function for performance estimation HOT 1
- In lab 3(Optimize the Application Code), step 2, does “clean project” need to be performed before “build project” in order to make the modified code take effect? HOT 1
- Where is zedboard reVision platform?
- How to get zynq7_ board [costom] platform? HOT 5
- Error building xfOpencv application using Zedboard HOT 7
- How to evaluate the power consumption of a xfopencv application at SDSoC environment? HOT 3
- Run xfOpenCV tutorial on Ultra96 board HOT 1
- ZCU104 Freezes when running opencv to xfopencv tutorial HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdsoc-tutorials.