Skip to content

xf::HoughLines doesn't synthesis correctly #92

Open
@Anadelphia

Description

@Anadelphia

In VIVADO HLS 2019.1 Windows

cflag: -IF:/thesis/07_Final/HOUGH_SINGLE/Hough_accel/INC -D__SDSVHLS__ -std=c++0x

my code (same as example):

`
#include "hls_stream.h"
#include "ap_int.h"
#include "common/xf_common.h"
#include "common/xf_utility.h"
#include "imgproc/xf_houghlines.hpp"

#define WIDTH 1920//1920//240//480//1920
#define HEIGHT 1080//1080//135//270//1080

#define RHOSTEP 1

#define THETASTEP 2 // 6.1 format

#define LINESMAX 512

#define DIAGVAL 2203 //275 //cvRound((sqrt(WIDTHWIDTH + HEIGHTHEIGHT)) / RHOSTEP);

#define MINTHETA 0

#define MAXTHETA 180

/* define the input and output types */

#define NPC1 XF_NPPC1

void houghlines_accel(xf::Mat<XF_8UC1, HEIGHT, WIDTH, NPC1> &_src,float *arrayy,float *arrayx,short threshold,short maxlines)
{
#pragma HLS interface m_axi port=arrayy depth=512
#pragma HLS interface m_axi port=arrayx depth=512
#pragma HLS INTERFACE s_axilite port=return bundle=lite

xf::HoughLines<RHOSTEP,THETASTEP,LINESMAX,DIAGVAL,MINTHETA,MAXTHETA,XF_8UC1,HEIGHT, WIDTH,NPC1>(_src,arrayy,arrayx,threshold,maxlines);

}
`

and the result after synthesis :
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions