Forum Discussion
Altera_Forum
Honored Contributor
16 years agoHow to insert pixel values?
I am new in VHDL and i am currently working on my diploma thesis which is about hardware implementation of a neural network that does face detection using viola-jones algorithm.My question is that i ...
Altera_Forum
Honored Contributor
16 years agoyes you could use a 2-dimensional array:
type PIXEL_TYPE is array (natural range 0 to 19) of std_logic_vector(19 downto 0); signal pixel_array: PIXEL_TYPE; You can access each pixel in that array with pixel_array(i)(j). You have to increment i with every pixel clock, j with every line. Which hardware you are using? Sensor? FPGA? Devkit? May be it's better to store the pixel values in internal RAM. How does your algorithm work? Local in a small region or global (whole image)? Jens