UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer hud789
Observer
238 Views
Registered: ‎04-24-2019

IplImage2AXIvideo convert image to stream of 2 piexls per clock

Jump to solution

Hello, I am writing an IP and its test bench in Vivado HLS. The IP take a steam of 2 pixels per clock and has the format of 

typedef hls::stream< ap_axiu<48,1,1,1> > AXI_STREAM

In the test bench I have following code to read an input image (8bit 3 channel) and convert it to a stream.

AXI_STREAM streamIn;

IplImage* imgIn = cvLoadImage(INPUT_IMAGE);
CvSize imgSize = cvGetSize(imgIn);

 IplImage2AXIvideo(imgIn, streamIn);

I am not sure this is the right approach since it is identical to the code for stream with 24 bits data. Does  IplImage2AXIvideo fill the 48 bit data with two pixels automatically?

 

Thanks

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Observer hud789
Observer
196 Views
Registered: ‎04-24-2019

Re: IplImage2AXIvideo convert image to stream of 2 piexls per clock

Jump to solution

By debugging in IplImage2AXIvideo, I set imgIn->depth = 16 and resolved the issue.

0 Kudos
1 Reply
Highlighted
Observer hud789
Observer
197 Views
Registered: ‎04-24-2019

Re: IplImage2AXIvideo convert image to stream of 2 piexls per clock

Jump to solution

By debugging in IplImage2AXIvideo, I set imgIn->depth = 16 and resolved the issue.

0 Kudos