9 Image Processing I.pdf

Embed Size (px)

Citation preview

  • 7/29/2019 9 Image Processing I.pdf

    1/11

    10/19/20

    1

    ENGG 167

    MEDICAL IMAGING

    Lecture9: Thursday Oct. 12

    Image Processing IImage Types & Linear Transforms

    Reference: Gonzalez, Woods, EddinsDigital Image Processing using MATLAB, Prentice Hall, (2004)

    2

    Preparation -

    Review Imaging Processing Toolbox Help Manual(on your computer)

    Download NIHImage(Mac) / ImageJ (Windows)(from the web just do a Google search)

    Most of the next two lectures are adapted fromTextbook by Gonzalez, Woods, EddinsDigital Image Processing using MATLAB, Prentice Hall, (2004)

  • 7/29/2019 9 Image Processing I.pdf

    2/11

    10/19/20

    3

    Human light perception is sensitive but not linear

    Ref: Gonzalez et al, Text

    Gray scale perception is not linear

    4

    This leads to optical illusion in certain cases

    Ref: Gonzalez et al, Text

    Gray scale perception is not linear

    Contrast, length, orientation are notentirely linear

  • 7/29/2019 9 Image Processing I.pdf

    3/11

  • 7/29/2019 9 Image Processing I.pdf

    4/11

    10/19/20

    7

    Enhancing images Intensity transforms

    Ref: Gonzalez et al, Text

    Negative transformContrast StretchingLogarithm transform gamma factorThresholding(upper and lower)

    8

    Enhancing images imadjust transform

    Ref: Gonzalez et al, Text

    Negative transform of image fg = imadjust(f, [low_inhigh_in], [low_outhigh_out], gamma);

    g =imadjust(f, [0 1], [1 0]); or g =imcomplement(f);

  • 7/29/2019 9 Image Processing I.pdf

    5/11

    10/19/20

    9

    Enhancing images contrast stretching

    (Radiology: windowing)

    Ref: Gonzalez et al, Text

    Image in

    Imageout

    Low I high I

    LowI

    highI

    Image in

    Imageout

    Low I high I

    LowI

    highI

    Image in

    Imageo

    ut

    Low I high I

    LowI

    highI

    10

    Enhancing images gamma factor

    Ref: Gonzalez et al, Text

    Image in

    Image in

    Imageout

    Low I high I

    LowI

    highI

    gamma =1

    Imageout

    Low I high I

    LowI

    highI

    gamma 1

  • 7/29/2019 9 Image Processing I.pdf

    6/11

    10/19/20

    11

    Enhancing images Histogram transforms in

    paint shop pro

    Ref: visible human project

    midtonecompression

    midtoneexpansion

    Histogram stretch

    12

    Enhancing images Histogram transform

    (histogram equalization, stretching)h(rk) =nk the histogram, h, is the number of pixels, n, at each k intensitylevel, with r being the new scale level ordinate

    Grey scale values0 255

    #ofpixels

    Grey scale values 2550

    #ofpixels

    Ref: visible human project

  • 7/29/2019 9 Image Processing I.pdf

    7/11

    10/19/20

    13

    Enhancing images Histogram processing

    & resulting transform curves

    Ref: Gonzalez et al, Text

    14

    Enhancing images Histogram processing

    & resulting transform curves

    Ref: Gonzalez et al, Text

    Scanned image (text on either side ofpage is showingthrough!) Removing this

    large peak at thetop of the intensity

    range eliminates allthis crosstalk

    Repeating again onthis edge correctsthis locally

  • 7/29/2019 9 Image Processing I.pdf

    8/11

    10/19/20

    15

    Enhancing images Histogram processing

    global vs local processing

    Ref: Gonzalez et al, Text

    16

    Enhancing images Spatial Filtering &

    Processing

    Ref: Gonzalez et al, Text

    1) Linear spatial filtering

    2) Nonlinear spatial filtering

    3) Geometric transformations

  • 7/29/2019 9 Image Processing I.pdf

    9/11

    10/19/20

    17

    Spatial Filtering with a filter mask to map the

    initial image onto a new calculated image

    Ref: Gonzalez et al, Text

    Smoothing masks

    18

    Spatial Smoothing Filter masks

    Ref: Gonzalez et al, Text

    Increasing mask size blurstheimage.

  • 7/29/2019 9 Image Processing I.pdf

    10/11

    10/19/20

    19

    Edge enhancement filter masks - Laplacian

    Ref: Gonzalez et al, Text

    20

    Edge enhancement filter masks other derivatives

    Ref: Gonzalez et al, Text

  • 7/29/2019 9 Image Processing I.pdf

    11/11

    10/19/20

    21

    Image enhancement via multistage processing

    Ref: Gonzalez et al, Text

    22

    Assignments this week

    Image Processing with MATLAB: Due Wed. Oct. 18.Download assignement.Choose one Function in MATLAB Image processing toolbox and describe anddemonstrate the function, with an example.

    Options :Dilation and ErosionImage DeblurringColor space transformLinear Filter design

    Radon TransformSegmentationSomething else?

    1) Use an image and show the effect that can be achieved with the MATLAB function.2) Show when the effect is dominant and when it is not dominant (what are the main

    control parameters).3) Include all MATLAB programs in your handed in work, as well as all images

    J ournal Club Presentations: Monday, Oct. 16.Image processing paper