Pipelined DVI Image Filter Example: Fish Finder
Summary

Video image filter example showing the use of Impulse C and the DVI Filter Platform Support Package to process video in real-time.

Description

This example demonstrates how to create a high-performance video filters using one or more parallel processes with single-cycle pipeline performance. This example is based on the DVI Pass-Through Reference Example provided by Xilinx with the Xilinx Spartan XtremeDSP Video Starter Kit.

The steps to create and run this example include:

  1. Generate hardware from C code using CoDeveloper (Project → Generate HDL).

  2. Export the hardware from CoDeveloper (Project → Export Generated Hardware).

  3. Export the MicroBlaze software from CoDeveloper (Project → Export Software).

  4. Import generated pcore into the existing Xilinx DVI passthrough reference example.

  5. Connect two busses (DVI_VIDEO_OUT from the existing FIR filter core, and DVI_VIDEO_IN to the existing gamma_out core).

  6. Connect the PLB bus interface.

  7. Connect clocks and resets.

  8. Generate Addresses.

  9. Build the bitmap and download.

  10. Connect DVI video source (such as “Finding Nemo” DVD).

  11. Download and run the software-side MicroBlaze app.

  12. Optional: use HyperTerminal to select alternate pre-filters.

This example filter performs a simple pattern match on a single scan line, looking for a specific combination of gray, black and orange (a stripe on the fish body), then uses that information to create a moving spotlight effect in subsequent video frames.

The example includes a software test bench that allows various filter and detection schemes to be quickly tested. A sample test input image (resized) is shown below along with a corresponding test output:

Resulting output image:

In the above test, the starting spotlight position is in the center of the image. The top half of the spotlight is shifted toward the clown fish, indicating a stripe was detected and the spotlight has begun to move, (Note that the BMP files used for test inputs are encoded bottom to top, while the DVI video frames are encoded top to bottom.)

See additional comments in fish_finder_hw.c and fish_finder_test.c.

 

Copyright 2009, Impulse Accelerated Technologies. All rights reserved.