Code Monkey home page Code Monkey logo

Comments (3)

csjedi1 avatar csjedi1 commented on September 3, 2024

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.

sgrace-xlnx avatar sgrace-xlnx commented on September 3, 2024

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.

lochoang75 avatar lochoang75 commented on September 3, 2024

Thanks for your help. I have already seen that difference.

from sdsoc-tutorials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.