matlab image processing with

12
Image Processing with MATLAB Scientific Programming (EL2310) An Nguyen - Fanny Roche - Tobias Roswall

Upload: others

Post on 04-Feb-2022

15 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: MATLAB Image Processing with

Image Processing with MATLAB

Scientific Programming (EL2310)

An Nguyen - Fanny Roche - Tobias Roswall

Page 2: MATLAB Image Processing with

Motivation

● Widely used among science and engineering fields

● Which applications are coming into your minds thinking of image processing?

2

Page 3: MATLAB Image Processing with

Motivation - some applications

● modern microscopy, medical diagnostics(f.ex. X-rays), security(f.ex at airports), astronomy, robotics, qualitymanagement/manufacturing(f.ex. measuring chips in semiconducter industry)

● and many many more….

3

Page 4: MATLAB Image Processing with

Histogram Equalization

4

Page 5: MATLAB Image Processing with

What for?

● enhance the contrast of an image (= contrast adjustment)

5

Page 6: MATLAB Image Processing with

How does it work? - algorithm(one solution)

● counting how often intensity level i(0...255) occures--->vector(256X1)

● computing propability of an occurance of a pixel of level i(0...255) ---> ‘p’-vector(256X1)

● computing cumulative sum of ‘p’ -->cdf-vector● replacing every element in image ‘I(:,:)==i’ with cdf(i)

*255

7

Page 7: MATLAB Image Processing with

Color Based Segmentation ● Image segmentation = partitioning image into

regions● Color Based segmentation = dividing image into

regions based on color values

http://www.mathworks.com/matlabcentral/fileexchange/20718-vibgyor-color-segmentation

8

Page 8: MATLAB Image Processing with

Color Based Segmentation

● What is it used for ?

○ to identify the region(s) of interest in a picture○ counting objects○ separating objects○ video tracking (locating a moving object)○ ...

9

Page 9: MATLAB Image Processing with

Color Based Segmentation

● Automatic color based segmentation algorithms very difficult to implement :

○ Real pictures → many colors, different textures, non homogeneous color regions, …

⇒ difficult to identify regions

http://en.wikipedia.org/wiki/Image_segmentation#mediaviewer/File:Polarlicht_2.jpg 10

Page 10: MATLAB Image Processing with

Hough Transform

● Was invented in 1972 by Richard Duda and Peter Hart

● Was first used to find lines in images● Is now generalised to find other figures

11

Page 11: MATLAB Image Processing with

The transform

Works by transforming Cartesian coordinates (x,y) to Polar coordinates (ρ,θ) for each point

ρ=x cos θ + y sin θ

12

Page 12: MATLAB Image Processing with

Example

Electrical circuit

13