![]() |
![]() |
| 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:
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.