cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
This is the accelerated functions of Vitis Vision sub-library from Vitis Open Source Library. More...
Modules | |
Harris | |
This is the Harris accelerated function from Vitis Vision Open Source Library. | |
Gammacorrection | |
This is the Gammacorrection accelerated function from Vitis Vision Open Source Library. | |
MedianBlur | |
This is the MedianBlur accelerated function from Vitis Vision Open Source Library. | |
Sobel | |
This is the Sobel accelerated function from Vitis Vision Open Source Library. | |
WarpTransform | |
This is the WarpTransform accelerated function from Vitis Vision Open Source Library. | |
Macros | |
#define | THIS_NAME "TB" |
#define | TRACE_OFF 0x0000 |
#define | TRACE_URIF 1 << 1 |
#define | TRACE_UAF 1 << 2 |
#define | TRACE_MMIO 1 << 3 |
#define | TRACE_ALL 0xFFFF |
#define | DEBUG_LEVEL (TRACE_ALL) |
#define | OK true |
#define | KO false |
#define | VALID true |
#define | UNVALID false |
#define | DEBUG_TRACE true |
#define | ENABLED (ap_uint<1>)1 |
#define | DISABLED (ap_uint<1>)0 |
Functions | |
bool | setInputDataStream (stream< UdpWord > &sDataStream, const std::string dataStreamName, const std::string inpFileName, int simCnt) |
Initialize an input data stream from a file. More... | |
bool | setInputFileToArray (const std::string inpFileName, ap_uint< OUTPUT_PTR_WIDTH > *imgArray, int simCnt) |
Initialize an input array from a file with format "tdata tkeep tlast". More... | |
bool | readDataStream (stream< UdpWord > &sDataStream, UdpWord *udpWord) |
Read data from a stream. More... | |
ap_uint< 64 > | pack_ap_uint_64_ (ap_uint< 8 > *buffer) |
Pack an array of 8 x ap_uint<8> into a ap_uint<64> word. More... | |
bool | dumpDataToFile (UdpWord *udpWord, std::ofstream &outFileStream) |
Dump a data word to a file. More... | |
bool | getOutputDataStream (stream< UdpWord > &sDataStream, const std::string dataStreamName, const std::string outFileName, int simCnt) |
Fill an output file with data from an output stream. More... | |
bool | dumpImgToFile (xf::cv::Mat< OUT_TYPE, HEIGHT, WIDTH, NPIX > &_img, const std::string outFileName, int simCnt) |
Fill an output file with data from an image. More... | |
unsigned int | writeCornersIntoFile (cv::Mat &in_img, cv::Mat &ocv_out_img, cv::Mat &out_img, std::vector< cv::Point > &hls_points, std::vector< cv::Point > &ocv_points, std::vector< cv::Point > &common_pts) |
Write the corners found by Harris into a file. More... | |
void | markPointsOnImage (xf::cv::Mat< OUT_TYPE, HEIGHT, WIDTH, NPIX > &imgOutput, cv::Mat &in_img, cv::Mat &out_img, std::vector< cv::Point > &hls_points) |
Mark the points found by Harris into the image. More... | |
bool | setInputDataStream (stream< UdpWord > &sDataStream, const string dataStreamName, const string inpFileName, int simCnt) |
Initialize an input data stream from a file. More... | |
bool | setInputFileToArray (const string inpFileName, ap_uint< OUTPUT_PTR_WIDTH > *imgArray, int simCnt) |
Initialize an input array from a file with format "tdata tkeep tlast". More... | |
bool | dumpDataToFile (UdpWord *udpWord, ofstream &outFileStream) |
Dump a data word to a file. More... | |
bool | getOutputDataStream (stream< UdpWord > &sDataStream, const string dataStreamName, const string outFileName, int simCnt) |
Fill an output file with data from an output stream. More... | |
bool | dumpImgToFile (xf::cv::Mat< OUT_TYPE, HEIGHT, WIDTH, NPIX > &_img, const string outFileName, int simCnt) |
Fill an output file with data from an image. More... | |
bool | dumpImgToFileWarpTransform (xf::cv::Mat< OUT_TYPE, HEIGHT, WIDTH, NPIX > &_img, const string outFileName, int simCnt, float *transform_matrix) |
Fill an output file with data from an image. More... | |
This is the accelerated functions of Vitis Vision sub-library from Vitis Open Source Library.
cFDK / cFp / cFp_Zoo : Submodules
#define DEBUG_LEVEL (TRACE_ALL) |
Definition at line 63 of file common.hpp.
#define DEBUG_TRACE true |
Definition at line 73 of file common.hpp.
#define DISABLED (ap_uint<1>)0 |
Definition at line 76 of file common.hpp.
#define ENABLED (ap_uint<1>)1 |
Definition at line 75 of file common.hpp.
#define KO false |
Definition at line 70 of file common.hpp.
#define OK true |
Definition at line 69 of file common.hpp.
#define THIS_NAME "TB" |
Definition at line 55 of file common.hpp.
#define TRACE_ALL 0xFFFF |
Definition at line 61 of file common.hpp.
#define TRACE_MMIO 1 << 3 |
Definition at line 60 of file common.hpp.
#define TRACE_OFF 0x0000 |
Definition at line 57 of file common.hpp.
#define TRACE_UAF 1 << 2 |
Definition at line 59 of file common.hpp.
#define TRACE_URIF 1 << 1 |
Definition at line 58 of file common.hpp.
#define UNVALID false |
Definition at line 72 of file common.hpp.
#define VALID true |
Definition at line 71 of file common.hpp.
bool dumpDataToFile | ( | UdpWord * | udpWord, |
ofstream & | outFileStream | ||
) |
Dump a data word to a file.
[in] | udpWord,a | pointer to the data word to dump. |
[in] | outFileStream,the | output file stream to write to. |
Definition at line 174 of file common.cpp.
bool dumpDataToFile | ( | UdpWord * | udpWord, |
std::ofstream & | outFileStream | ||
) |
Dump a data word to a file.
[in] | udpWord,a | pointer to the data word to dump. |
[in] | outFileStream,the | output file stream to write to. |
bool dumpImgToFile | ( | xf::cv::Mat< OUT_TYPE, HEIGHT, WIDTH, NPIX > & | _img, |
const std::string | outFileName, | ||
int | simCnt | ||
) |
Fill an output file with data from an image.
[in] | sDataStream | the input image in xf::cv::Mat format. |
[in] | outFileName | the name of the output file to write to. |
bool dumpImgToFile | ( | xf::cv::Mat< OUT_TYPE, HEIGHT, WIDTH, NPIX > & | _img, |
const string | outFileName, | ||
int | simCnt | ||
) |
Fill an output file with data from an image.
[in] | sDataStream | the input image in xf::cv::Mat format. |
[in] | outFileName | the name of the output file to write to. |
Definition at line 240 of file common.cpp.
bool dumpImgToFileWarpTransform | ( | xf::cv::Mat< OUT_TYPE, HEIGHT, WIDTH, NPIX > & | _img, |
const string | outFileName, | ||
int | simCnt, | ||
float * | transform_matrix | ||
) |
Fill an output file with data from an image.
[in] | sDataStream | the input image in xf::cv::Mat format. |
[in] | outFileName | the name of the output file to write to. |
Definition at line 304 of file common.cpp.
bool getOutputDataStream | ( | stream< UdpWord > & | sDataStream, |
const std::string | dataStreamName, | ||
const std::string | outFileName, | ||
int | simCnt | ||
) |
Fill an output file with data from an output stream.
[in] | sDataStream,the | output data stream to set. |
[in] | dataStreamName,the | name of the data stream. |
[in] | outFileName,the | name of the output file to write to. |
bool getOutputDataStream | ( | stream< UdpWord > & | sDataStream, |
const string | dataStreamName, | ||
const string | outFileName, | ||
int | simCnt | ||
) |
Fill an output file with data from an output stream.
[in] | sDataStream,the | output data stream to set. |
[in] | dataStreamName,the | name of the data stream. |
[in] | outFileName,the | name of the output file to write to. |
Definition at line 196 of file common.cpp.
void markPointsOnImage | ( | xf::cv::Mat< OUT_TYPE, HEIGHT, WIDTH, NPIX > & | imgOutput, |
cv::Mat & | in_img, | ||
cv::Mat & | out_img, | ||
std::vector< cv::Point > & | hls_points | ||
) |
Mark the points found by Harris into the image.
Definition at line 506 of file common.cpp.
ap_uint<64> pack_ap_uint_64_ | ( | ap_uint< 8 > * | buffer | ) |
Pack an array of 8 x ap_uint<8> into a ap_uint<64> word.
[in] | buffer | A pointer to an array of 8 x ap_uint<8> |
Definition at line 150 of file common.cpp.
Read data from a stream.
[in] | sDataStream,the | output data stream to read. |
[in] | dataStreamName,the | name of the data stream. |
[out] | udpWord,a | pointer to the storage location of the data to read. |
Definition at line 137 of file common.cpp.
bool setInputDataStream | ( | stream< UdpWord > & | sDataStream, |
const std::string | dataStreamName, | ||
const std::string | inpFileName, | ||
int | simCnt | ||
) |
Initialize an input data stream from a file.
[in] | sDataStream | the input data stream to set. |
[in] | dataStreamName | the name of the data stream. |
[in] | inpFileName | the name of the input file to read from. |
bool setInputDataStream | ( | stream< UdpWord > & | sDataStream, |
const string | dataStreamName, | ||
const string | inpFileName, | ||
int | simCnt | ||
) |
Initialize an input data stream from a file.
[in] | sDataStream | the input data stream to set. |
[in] | dataStreamName | the name of the data stream. |
[in] | inpFileName | the name of the input file to read from. |
Definition at line 33 of file common.cpp.
bool setInputFileToArray | ( | const std::string | inpFileName, |
ap_uint< OUTPUT_PTR_WIDTH > * | imgArray, | ||
int | simCnt | ||
) |
Initialize an input array from a file with format "tdata tkeep tlast".
[in] | inpFileName | the name of the input file to read from. |
[out] | imgOutputArray | the array to write the tdata only field from the file. |
bool setInputFileToArray | ( | const string | inpFileName, |
ap_uint< OUTPUT_PTR_WIDTH > * | imgArray, | ||
int | simCnt | ||
) |
Initialize an input array from a file with format "tdata tkeep tlast".
[in] | inpFileName | the name of the input file to read from. |
[out] | imgArray | the array to write the tdata only field from the file. |
Definition at line 85 of file common.cpp.
unsigned int writeCornersIntoFile | ( | cv::Mat & | in_img, |
cv::Mat & | ocv_out_img, | ||
cv::Mat & | out_img, | ||
std::vector< cv::Point > & | hls_points, | ||
std::vector< cv::Point > & | ocv_points, | ||
std::vector< cv::Point > & | common_pts | ||
) |
Write the corners found by Harris into a file.
Drawing a circle around corners
Definition at line 437 of file common.cpp.