offset and noise compensation › studier › emner › matnat › ifi › inf5440 › v10 ›...

21
INF 5440 - CMOS Image Sensors AO 10V 8.1 Image Prosessing OFFSET AND NOISE COMPENSATION

Upload: others

Post on 07-Feb-2021

11 views

Category:

Documents


0 download

TRANSCRIPT

  • 0 - CMOS Image Sensors

    AO 8.1

    Ima

    ON

    INF 544

    10V

    ge Prosessing

    OFFSET AND

    NOISE COMPENSATI

  • 0 - CMOS Image Sensors

    AO 8.2

    Ima

    Off

    INF 544

    10V

    ge Prosessing

    set and fixed pattern noise reduction

    Offset variation - “shading”

  • 0 - CMOS Image Sensors

    AO 8.3

    Ima

    Ro

    INF 544

    10V

    ge Prosessing

    w Noise

  • 0 - CMOS Image Sensors

    AO 8.4

    Ima

    Off

    Glo

    ming SC node or the ADC

    and to prevent clipping at the

    Com

    UsadarkERS

    Withstor

    Row(shieaver

    Thiswellthe nois

    Com rrayDarkreference columns

    INF 544

    10V

    ge Prosessing

    set compensation

    bal offset calibration

    • Dark level is set by adjusting the offset at the ADC input, by means of a sumreference.

    • Dark level is often set a few 10s LSBs above zero to utilize the ADC dynamiclower limit

    pensation for variable offset

    ge of mechanical shutter and global reset release results in signal gradient due uneven integration of dark current with (electronic rolling shutter).

    a global shutter sensor, integration of dark current on the age node will cause a gradient in dark level.

    wise compensation can be done by reading a set of dark lded) reference pixel of the same row and subtracting the age value form the signal in active array.

    method compensates for row noise (temporal and FPN) as , provided the number of dark columns is sufficiently high. If not, pixel wise noise in the dark columns would convert into row e.

    pensation is usually done in the digital domain. Active a

  • 0 - CMOS Image Sensors

    AO 8.5

    Ima

    Co

    INF 544

    10V

    ge Prosessing

    lumn Noise

  • 0 - CMOS Image Sensors

    AO 8.6

    Ima

    Co

    Comfrom

    Aveensuout)

    Com

    INF 544

    10V

    ge Prosessing

    mpensation of Column FPN.

    pensation values for each individual column is taken the dark (shielded) reference rows.

    rage over several row and even several frames, res that FPN only is compensated (temporal evens

    .

    pensation is performed in the digital domain.

  • 0 - CMOS Image Sensors

    AO 8.7

    Ima

    Len

    Duelightat th

    Thisshap

    Θ is

    Com1/co(for

    INF 544

    10V

    ge Prosessing

    s Shading - correction

    to the properties of the optics, the intensity is higher in the centre than e periphery of the image.

    attenuation follows usually a cosnΘ e where n is in the range 3-5.

    the Chief Ray Angle, CRA.

    pensation by a gain functionsnΘ example by a look up table).

  • 0 - CMOS Image Sensors

    AO 8.8

    Ima

    S

    INF 544

    10V

    ge Prosessing

    FILTER OPERATION

  • 0 - CMOS Image Sensors

    AO 8.9

    Ima

    Data

    Low is a high pass filter that boosts up e

    INF 544

    10V

    ge Prosessing

    filtering is necessary to improve the image quality.

    • Low pass filtering prior to resampling

    • Low pass filtering prior to interpolation

    • Low pass filtering to remove overshoots.

    • Colour interpolation (low pass filter function).

    pass filtering blurs the image. Aperture correction,e.g. after colour interpolationdges making the image look sharper.

  • 0 - CMOS Image Sensors

    AO 8.10

    Ima

    Exa

    Asssharthe (the

    The

    α coof th

    Fou

    Whe

    fblu

    g

    G ω(

    INF 544

    10V

    ge Prosessing

    mple:

    uming the colour interpolation (low pass filter) reduces the pness (forg: original data). Blurring, or low pass filtering, is

    convolution of the original image with a rectangular kernel h mask).

    following filter increases the sharpness.

    ntrols the the amplitude of the the high-frequency emphasis e function g, and is set between 0 and 1.

    rier transform (frequency response):

    re

    h: 5x5 and 9x9.

    α: 0.2 and 0.5

    rr x y,( ) h forg x y,( )⊗=

    x y,( )forg αfblurr–[ ]

    1 α–--------------------------------------=

    x ωy, )Forg αHForg–

    1 α–------------------------------------ 1 αH–1 α–

    -----------------Forg= =

    HForg F h forg x y,( )⊗[ ]=

  • 0 - CMOS Image Sensors

    AO 8.11

    Ima

    Ga

    Data in

    mma curve

    INF 544

    10V

    ge Prosessing

    mma correction

    • Aligns the gradation of the recording unit and the displaying unit. Linear response requires that the illuminance from the display or paper is proportional to the illuminance from the object being recorded.

    • Gradation curve: y = k xγ

    • Compressing the response in the bright areas and dark areas, means that the dynamic range of the reproduced image is less than the dynamic range of the scene.

    • For example: CRT has a standard γ = 0.45. That is compensated in the TV set.

    • Digital cameras have no standard, important parameter in the data sheet.

    • Measured by the response form a chart of defined reflactance

    Data outGa

  • 0 - CMOS Image Sensors

    AO 8.12

    Ima

    Au

    Trad

    Autoadd(ultr

    INF 544

    10V

    ge Prosessing

    to Focus

    itionally

    focus has been dependent on itional sensors and sources. a sound or infrared light).

  • 0 - CMOS Image Sensors

    AO 8.13

    Ima

    Digi

    Thethe the high(at tscanpass

    Theuse stra Accumulated

    values

    Auto focusoutput data

    g and accumulation

    AF data Focus point

    Deviation from focus

    INF 544

    10V

    ge Prosessing

    tal Sensors

    image data are utilized to adjust focus. One method is based on spatial high frequency content is est when the image is focused he sharpest). The data are ned and weighted with a band filter.

    methods gives the freedom to a complex set of windows and tegies for auto focus. Autofocus

    filter

    AF-windows

    Row/column scanning, filterin

    Frequencyω0

    Response

  • 0 - CMOS Image Sensors

    AO 8.14

    Ima

    EleSelenewinter

    The

    Gen

    Clos

    Line

    Cub Zero order

    1st order

    3rd order

    INF 544

    10V

    ge Prosessing

    ctronic (digital) zoomct a subset of the pixels, increase the separation and insert pixel values in positions between the original positions by polation.

    interpolated values are found by low pass filtering.

    erally:

    est neighbour, i.e. zero order:

    ar interpolation, i.e 1st order:

    ical interpolation, i.e. 3rd order

    p x( ) f x xi–( ) g xi( )⋅i

    ∑=

    f x( ) 1= 0 x 0.5

  • 0 - CMOS Image Sensors

    AO 8.15

    Ima

    Z

    3

    INF 544

    10V

    ge Prosessing

    ero order 1st order

    rd order

  • 0 - CMOS Image Sensors

    AO 8.16

    Ima

    INF 544

    10V

    ge Prosessing

  • 0 - CMOS Image Sensors

    AO 8.17

    Ima

    INF 544

    10V

    ge Prosessing

  • 0 - CMOS Image Sensors

    AO 8.18

    Ima

    Dat

    Los

    Los

    Oth

    TIFF mat which is used as container for a

    Ref.: Wikipedia

    INF 544

    10V

    ge Prosessing

    a Compression

    sless compression

    • Removes redundant information - Changes the data format

    • Can be reversed - Recreate data identical with the original data.

    • GIF is limited to 256 colours - too little for photography.

    • PNG gives large files.

    sy compression

    • Removes information - Cannot recreate the original image.

    • Visible effects is dependent on the degree of compression.

    • Common file format: JPEG (Joint Photographic Experts Group). - Specifies the transformation of image data to streaming bytes. - JFIF (JPEG File Interchange Format) minimum version of JPEG. - Other JPEG based file formats: JNG

    er File formats:

    (Tagged Image FIle Format) can be compressed or uncompressed. Flexible for JPEG compressed image.

  • 0 - CMOS Image Sensors

    AO 8.19

    Ima

    JPE

    ref.: Wikipedia

    INF 544

    10V

    ge Prosessing

    G encoding

    • RBG -> YCbCr

    • Subsampling of Cb and Cr - Reduces the data of the colour information.

    The eye has lowers resolution for chrominans than for luminance.

    • Splitting the array into sub arrays 8x8

    • Performing Discrete Cosinus Transform (DCT)

    • Reduces the quantization resolution in high frequency components - Removes frequency components of small values; are set to zero.

    • Entropy coding - The array elements are scanned in a “zigzag” order. - Run-length encoding - Huffmann coding (minimum redundant data)

  • 0 - CMOS Image Sensors

    AO 8.20

    Ima

    Exa

    : 77kB

    onents with small amplitude

    INF 544

    10V

    ge Prosessing

    mple:

    JPEG: 517kB JPEGBMP: 2.06 MB

    Removed frequency comp

  • 0 - CMOS Image Sensors

    AO 8.21

    Ima

    Ref

    rmats

    INF 544

    10V

    ge Prosessing

    erences:

    NakamuraImage Sensors and Signal Processing for Digital CamerasJunichi Nakamura (editor)CRC - Taylor & Francis

    Wikipediahttp://en.wikipedia.org/wiki/Comparison_of_graphics_file_fohttp://en.wikipedia.org/wiki/Jpeg#Encoding

    Offset and noise CompensationOffset and fixed pattern noise reductionRow NoiseOffset compensationGlobal offset calibration• Dark level is set by adjusting the offset at the ADC input, by means of a summing SC node or th...• Dark level is often set a few 10s LSBs above zero to utilize the ADC dynamic and to prevent cli...

    Compensation for variable offsetUsage of mechanical shutter and global reset release results in dark signal gradient due uneven i...With a global shutter sensor, integration of dark current on the storage node will cause a gradie...Row wise compensation can be done by reading a set of dark (shielded) reference pixel of the same...This method compensates for row noise (temporal and FPN) as well, provided the number of dark col...Compensation is usually done in the digital domain.

    Column NoiseCompensation of Column FPN.Compensation values for each individual column is taken from the dark (shielded) reference rows.Average over several row and even several frames, ensures that FPN only is compensated (temporal ...Compensation is performed in the digital domain.

    Lens Shading - correctionDue to the properties of the optics, the light intensity is higher in the centre than at the peri...This attenuation follows usually a cosnQ shape where n is in the range 3-5.Q is the Chief Ray Angle, CRA.Compensation by a gain function 1/cosnQ (for example by a look up table).Filter OperationsData filtering is necessary to improve the image quality.• Low pass filtering prior to resampling• Low pass filtering prior to interpolation• Low pass filtering to remove overshoots.• Colour interpolation (low pass filter function).

    Low pass filtering blurs the image. Aperture correction,e.g. after colour interpolation is a high...Example:h: 5x5 and 9x9.a: 0.2 and 0.5Assuming the colour interpolation (low pass filter) reduces the sharpness (forg: original data). ...The following filter increases the sharpness.a controls the the amplitude of the the high-frequency emphasis of the function g, and is set bet...Fourier transform (frequency response):Where

    Gamma correction• Aligns the gradation of the recording unit and the displaying unit. Linear response requires th...• Gradation curve: y = k xg• Compressing the response in the bright areas and dark areas, means that the dynamic range of th...• For example: CRT has a standard g = 0.45. That is compensated in the TV set.• Digital cameras have no standard, important parameter in the data sheet.• Measured by the response form a chart of defined reflactance

    Auto FocusTraditionallyAuto focus has been dependent on additional sensors and sources. (ultra sound or infrared light).Digital SensorsThe image data are utilized to adjust the focus. One method is based on the spatial high frequenc...The methods gives the freedom to use a complex set of windows and strategies for auto focus.

    Electronic (digital) zoomSelect a subset of the pixels, increase the separation and insert new pixel values in positions b...The interpolated values are found by low pass filtering.Generally:Closest neighbour, i.e. zero order:Linear interpolation, i.e 1st order:Cubical interpolation, i.e. 3rd order

    Data CompressionLossless compression• Removes redundant information - Changes the data format• Can be reversed - Recreate data identical with the original data.• GIF is limited to 256 colours - too little for photography.• PNG gives large files.

    Lossy compression• Removes information - Cannot recreate the original image.• Visible effects is dependent on the degree of compression.• Common file format: JPEG (Joint Photographic Experts Group).- Specifies the transformation of image data to streaming bytes.- JFIF (JPEG File Interchange Format) minimum version of JPEG.- Other JPEG based file formats: JNG

    Other File formats:TIFF (Tagged Image FIle Format) can be compressed or uncompressed. Flexible format which is used ...

    JPEG encoding• RBG -> YCbCr• Subsampling of Cb and Cr- Reduces the data of the colour information. The eye has lowers resolution for chrominans than f...

    • Splitting the array into sub arrays 8x8• Performing Discrete Cosinus Transform (DCT)• Reduces the quantization resolution in high frequency components- Removes frequency components of small values; are set to zero.

    • Entropy coding- The array elements are scanned in a “zigzag” order.- Run-length encoding- Huffmann coding (minimum redundant data)

    Example:References:Image Sensors and Signal Processing for Digital Cameras Junichi Nakamura (editor) CRC - Taylor & ...http://en.wikipedia.org/wiki/Comparison_of_graphics_file_formatshttp://en.wikipedia.org/wiki/Jpeg#Encoding