cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
245 Views
Registered: ‎02-07-2020

How Vitis host can read an image

Jump to solution

Hi to all!

Is it possible to make the host in a Vitis accel example, to read an image from my HD as an input?

If so how can i achieve it???I am trying to build in Vitis a laplacian edge detector.

Thanks in advance.

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
94 Views
Registered: ‎06-04-2018

Hi @stzog ,

you can use the following design as reference where bmp files are used as input:

1. https://github.com/Xilinx/Vitis_Accel_Examples/tree/master/cpp_kernels/critical_path

2. https://github.com/Xilinx/Vitis_Accel_Examples/tree/master/cpp_kernels/gmem_2banks

3. https://github.com/Xilinx/Vitis_Accel_Examples/tree/master/cpp_kernels/custom_datatype 

 

Thanks,

Vishnu

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

3 Replies
Highlighted
Moderator
Moderator
193 Views
Registered: ‎09-12-2007

This would need to be done in your HW platform.

For example:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842083/HDMI+FrameBuffer+Example+Design+2018.1

Then set the AXI PFM properties on this interface

 

Highlighted
Explorer
Explorer
146 Views
Registered: ‎02-07-2020

@stephenm 

I just want to load an image(.bmp) from my hard disk to vitis Ηost as input to the accelerated kernel.

Is that possible?The host to read from hard drive an image directly?

Thanks in advance.

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
95 Views
Registered: ‎06-04-2018

Hi @stzog ,

you can use the following design as reference where bmp files are used as input:

1. https://github.com/Xilinx/Vitis_Accel_Examples/tree/master/cpp_kernels/critical_path

2. https://github.com/Xilinx/Vitis_Accel_Examples/tree/master/cpp_kernels/gmem_2banks

3. https://github.com/Xilinx/Vitis_Accel_Examples/tree/master/cpp_kernels/custom_datatype 

 

Thanks,

Vishnu

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post