image processing

32
Vision system (image processing) By: karim ahmed abuamu

Upload: abuamo

Post on 13-Jan-2015

447 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Image processing

Vision system(image processing)

By: karim ahmed abuamu

Page 2: Image processing

Image Representation

A digital image is a representation of a two-dimensional image as a finite set of digital values, called picture elements or pixels

The image is stored in computer memory as 2D array of integers

Digital images can be created by a variety of input devices and techniques:

digital cameras, scanners, coordinate measuring machines etc.

Page 3: Image processing

Representation of Digital Images

Page 4: Image processing

Types of Images

Digital images can be classified according to number and nature of those samplesBinaryGrayscaleColor

Page 5: Image processing

Binary Images

A binary image is a digital image that has only two possible values for each pixel

Binary images are also called bi-level or two-level

Binary images often arise in digital image processing as masks or as the result of certain operations such as segmentation, thresholding.

Page 6: Image processing

Grayscale Image Binary Image

Page 7: Image processing

Grayscale Images

A grayscale digital image is an image in which the value of each pixel is a single sample.

Displayed images of this sort are typically composed of shades of gray, varying from black at the weakest intensity to white at the strongest.

The values of intensity image ranges from 0 to 255.

Page 8: Image processing

Grayscale Image

Page 9: Image processing

True color images

A true color image is stored as an m-by-n-by-3 data array that defines red, green, and blue color components for each individual pixel.

The RGB color space is commonly used in computer displays

Page 10: Image processing

True color Image

Page 11: Image processing

Image segmentation

In computer vision, image segmentation is the process of partitioning a digital image into multiple segments (sets of pixels, also known as superpixels).

The goal of segmentation is to simplify and/or change the representation of an image into something that is more meaningful and easier to analyze.

Image segmentation is typically used to locate objects and boundaries (lines, curves, etc.) in images. More precisely, image segmentation is the process of assigning a label to every pixel in an image such that pixels with the same label share certain visual characteristics.

Page 12: Image processing

Histograms

o A tool that is used often in image analysis .o The (intensity or brightness) histogram shows how

many times a particular grey level appears in an image.o For example, 0 - black, 255 – white.

0 1 1 2 4

2 1 0 0 2

5 2 0 0 4

1 1 2 4 1 0

1

2

3

4

5

6

7

0 1 2 3 4 5 6

image histogram

Page 13: Image processing

Histogram Features

An image has low contrast when the complete range of possible values is not used.  Inspection of the histogram shows this lack of contrast.

Page 14: Image processing
Page 15: Image processing
Page 16: Image processing
Page 17: Image processing
Page 18: Image processing
Page 19: Image processing
Page 20: Image processing
Page 21: Image processing

Histogram Equalization

Page 22: Image processing
Page 23: Image processing

Thresholding (image processing)

Threshold converts each pixel into black, white or unchanged depending on whether the original color value is within the threshold range.

Thresholding is usually the first step in any segmentation

Single value thresholding can be given mathematically as follows:

Tyxfif

Tyxfifyxg

),( 0

),( 1),(

Page 24: Image processing

Imagine a poker playing robot that needs to visually interpret the cards in its hand

Original Image Thresholded Image

Page 25: Image processing

If you get the threshold wrong the results can be disastrous

Threshold Too Low Threshold Too High

Page 26: Image processing

Basic Global Thresholding

Based on the histogram of an image Partition the image histogram using a single global threshold

The success of this technique very strongly depends on how well the histogram can be partitioned

The basic global threshold, T, is calculated as follows:

1. Select an initial estimate for T (typically the average grey level in the image)

2. Segment the image using T to produce two groups of pixels: G1 consisting of pixels with grey levels >T and G2 consisting pixels with grey levels ≤ T

3. Compute the average grey levels of pixels in G1 to give μ1 and G2 to give μ2

Page 27: Image processing

4. Compute a new threshold value:

5. Repeat steps 2 – 4 until the difference in T in successive iterations is less than a predefined limit T∞

This algorithm works very well for finding thresholds when the histogram is suitable

221

T

Page 28: Image processing

Thresholding Example 1

Page 29: Image processing

Thresholding Example 2

Page 30: Image processing

Problems With Single Value Thresholding

Single value thresholding only works for bimodal histogramsImages with other kinds of histograms need more than a single threshold

Page 31: Image processing

Single value thresholding only works for bimodal histogramsImages with other kinds of histograms need more than a single threshold

Page 32: Image processing

Thank You