18
Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

Embed Size (px)

Citation preview

Page 1: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

                       

    

Digital Processing of Analog Television

 

Lior ZimetEE392J Final Project

Winter 2002

Page 2: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

Project Goals

• Digitize an analog NTSC signal and decode it in software

• Use digital processing to perform– Luminance and Chrominance separation– Color demodulation– Interlace to progressive conversion

Page 3: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

CompositeVideo

DCRestoration

and AGCADC

10 bitSync

Detectionand Active

VideoExtraction

Resampler4XFsc

Y+C Y+CY/C

Separation+Motion

Detection

Y

C

ColorDe-

modulation

De-Interlacer

Motion

YUVto

RGBDisplay

RGB Y, U, VFields

Hardware Software

Y, U, VFrames

System Block Diagram

Display

Page 4: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

ONE LINE OF NTSC SIGNAL

HSYNC

COLOR BURST

ACTIVE VIDEO

SYNC LEVEL

BLANK LEVEL

PEAK WHITE

SIGNAL PEAK

NTSC – 1D Analog Signal

Page 5: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

0.0 1.0 2.0 3.0 4.03.58

Amplitude

Frequency(MHz)

ChrominanceSub-carrier

YUV

UV

F

Y U,V Y YU,V

15.734 KHz

29.97 HzSpacing

Composite Video Spectrum

Page 6: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

Y+U

Y-U

Y+U

Y-V

Y+V

Y-V

Y-U

Y+U

Y-U

Y+V

Y-V

Y+V

Y/C Separation – 1D Comb Filter

• Resampling at 4xFsc will take advantage of the alternate phase in the color modulation

• Y/C separation can be done within the field

Y =( (Ycenter+Ccenter) + (YupperCupper)) / 2

C = ((Ycenter+Ccenter) (YupperCupper)) / 2

Page 7: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

Y/C Separation – 2D Adaptive Comb Filter

• 1D comb filter works perfectly only for vertically orientated structures in a picture

• 2D adaptive comb filter:– Weighs the upper line and lower line combing

according to horizontal edge detection

– Uses notch filter in cases where 1D fails

Page 8: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

Y+C

Y-C

Y+C

Y-C

Y+C

Y-C

Y+C

Y-C

Y+C

Y-C

Y+C

Y-C

Y+C

Field n-2 Field n-1 Field n Field n+1 Field n+2

Y/C Separation – 3D Comb Filter

• In still image, pixels are identical from frame to frame

• The Chrominance phase is alternating

• Must be disabled when motion is present

Page 9: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

"CHEER LEADER" WITH 3D COMB AND NO MOTION DETECTION

MOTION ARTIFACTS

Motion Artifacts Example

Page 10: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

Notch Filter

3D CombFilter

Vertical 1DSeperator

Y

C

Vertical andHorizontal

Edge Detectorfor 2D

AdaptiveComb Filter

Y

C

MotionDetector

for 3DAdaptive

Comb filter

Y

C

Y

C

Y

C

Y+C

Y/C Separation – 3D Adaptive Comb Filter

Page 11: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

NOTCH FILTER Y/C SEPERATION

CROSS-LUMINANCE

CROSS-CHROMINANCE

2D ADAPTIVE COMB FILTER Y/C SEPERATION

HANGING DOTS ARTIFACT

3D adaptive Y/C separation

Y/C Separation

Example

Page 12: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

COLOR BURST INFORMATION

HORIZONTAL SYNC

PHASE

BACK PORCH

tVtUChroma cossin

Color Information

Page 13: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

ChrominanceFrom Y/CSeparator

2cos(2 F sc t)

2sin(2 F sc t)

LPF

LPF

V

U

tVtUUttVtU 2sin2cossin2cossin

tUtVVttVtU 2sin2coscos2cossin

Color Demodulation

tcos2

tsin2

Page 14: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

Motion?

InterpolateWithin theSame Field

Merge WithNeighbor

Field

No

Yes

ProgressiveYUV

InterlaceYUV

De-interlacing

• Merge fields or interpolate in the pixel domain• Use motion detector to decide

Page 15: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

SNELL & WILCOX WITH ADAPTIVE 3D COMB FILTER

SNELL & WILCOX WITH NOTCH FILTER SNELL & WILCOX 2D ADAPTIVE COMB FILTER

Snell & Wilcox Pattern

Page 16: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

Sequence from “Cheer Leader”

Page 17: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

"CHEER LEADER" WITH 3D ADAPTIVE COMB FILTER

Decoded Frame from “Cheer Leader”

Page 18: Digital Processing of Analog Television Lior Zimet EE392J Final Project Winter 2002

Y+C

Y-C

Y+C

Y-C

Y+C

Y-C

Y+C

Y-C

Y+C

Y-C

Y+C

Y-C

Y+C

Field n-2 Field n-1 Field n Field n+1 Field n+2

Y+C

Y-C

Y+C

Y-C

Y+C

Y-C

Y+C

Y-C

Y+C

Y-C

Y+C

Y-C

Y+C

Field n-2 Field n-1 Field n Field n+1 Field n+2

Motion Detection• Apply small motion and large motion detection

using adjacent fields

Small Motion Large Motion