![Aurora Design SCRF Скачать руководство пользователя страница 17](http://html1.mh-extra.com/html/aurora-design/scrf/scrf_user-and-technical-manual_3018835017.webp)
Spatial Correction:
With an output clock now available, the image can be processed. In order to
convert between different video standards, the video image must first be spatially
converted. Many aspects need to be taken into account such as image aspect ratio,
and the number of active lines. The distinction of image aspect ratio is made here to
differentiate it from pixel aspect ratio which only has to do with how the analog data
is quantized.
Since this converter is limited to the type of input and output video handled, no
spatial correction needs to take place in the horizontal direction. This means that all
720 input pixels will be included in the output line, but at the output clock rate. Only
spatial correction in the vertical direction needs to take place.
On first inspection, it would appear that this correction can easily be achieved by
simple adding or dropping lines to get the desired result. For example, if you have
576 lines in the input, and need 384 lines in the output, dropping every third line
would appear to be adequate. This is known as decimation. Unfortunately, one third
of the original information is lost, not being included in the output in any way, and
since the input lines were spaced differently than the output lines, aliasing of the
image will occur. This is most noticeable as stair stepping or jagged edges around
objects. To avoid this situation, all lines in the input need to be used to generate the
output.
A simple solution for the above case would be to use the first line of the input as
the first line in the output, and then average the next two lines of the input to create
the second line in the output. This is known as two line interpolation. While it
provides a vastly superior image to straight decimation, it has several draw backs.
First, the output lines will have different frequency content because one line in the
output is the same as a line of the input with all vertical frequencies intact, while the
next line in the output is the average of two lines of the input, with the frequencies
filtered down. Also, since this is just a simple averaging filter, aliasing can occur,
introducing image data that does not actually exist.
Then consider the case where the output is not a clear division of the input. In the
example there were exactly 2/3 the number of lines in the output as there were in the
input. Now take the case of 625 input to 441 output. This requires scaling 576 input
lines to 406 output lines or a 406/576 ratio, which can be reduced to 203/288. Not an
easy ratio to handle with a simple two line interpolator.
By taking more lines into account, a much more accurate representation of the
desired ratio can be achieved. By comparing the desired spatial position of the output
line to the input lines, and taking a weighted average of several lines around this
point, a high quality filter, or interpolator is realized. Through actual tests, it has been
shown that carefully chosen weighting coefficients used with four lines gives the best
results. It has also been shown that no perceptible loss of image quality occurs when
only three adjacent lines are used. Since this converter processes all pixels within the
FPGA itself, it can easily handle three or four line interpolation. Because of the higher
clock frequency, and therefore higher power consumption required for four line
interpolation, and because of the imperceptible difference in quality, a three line
interpolator is implemented in this converter.
Introduction
17