Xilinx / xfopencv

Other
321 stars 144 forks source link

Can't find RGB2GRAY function in xfopencv #51

Closed HungSoma closed 5 years ago

HungSoma commented 5 years ago

Hi, I can't find rgb2gray and gray2rgb in xfopencv when add xf_cvt_color.hpp into Vivado HLS , it only rgba2iyuv, rgba2nv12, rgba2nv21,.. And I can't use hls::cvtcolor with xf::Mat, pls help me! Regard, Hung

bgouthamb commented 5 years ago

Hello @HungSoma,

rgb2gray and gray2rgb configurations will be available in the next release of xfOpenCV.

For now, as a workaround, you may use the converter functions from xf::Mat to AXIVideo and AXIVideo to hls Mat and then call the hls::cvtcolor.

HungSoma commented 5 years ago

Thank you, I hope to see it soon!

bgouthamb commented 5 years ago

rgb2gray and gray2rgb configurations of cvtColor function are now available in 2019.1 release.

HungSoma commented 5 years ago

Thanks all!