color based object detection & image segmentation€¦ · build statistical model of feature...

9
Michael C. Nechyba September 8, 2003 Colorbased object detection & image segmentation

Upload: others

Post on 12-Oct-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Color based object detection & image segmentation€¦ · Build statistical model of feature distribution for object: Simplest statistical model: Gaussian Over color space: 3D Gaussian

Michael C. NechybaSeptember 8, 2003

Color!based object detection & image segmentation

Page 2: Color based object detection & image segmentation€¦ · Build statistical model of feature distribution for object: Simplest statistical model: Gaussian Over color space: 3D Gaussian

Feature space "RGB color#

Object "ball# detection

Image segmentation "path detetion#

C source code on w/sample files on web

Outline

Page 3: Color based object detection & image segmentation€¦ · Build statistical model of feature distribution for object: Simplest statistical model: Gaussian Over color space: 3D Gaussian

Color representationBl

u!

Red Gree"

Blu!

Gree"

Red

Each pixel is represented as a 3#byte value $RGB%

RGB color cub!

Page 4: Color based object detection & image segmentation€¦ · Build statistical model of feature distribution for object: Simplest statistical model: Gaussian Over color space: 3D Gaussian

Extract relevant features for object of interest "color in our case#

Build statistical model of feature distribution for object:

Simplest statistical model: Gaussian

Over color space: 3D Gaussian

For unknown pixel, use distance threshold from statistical model

Object detection/segmentation

Page 5: Color based object detection & image segmentation€¦ · Build statistical model of feature distribution for object: Simplest statistical model: Gaussian Over color space: 3D Gaussian

Clean object detection

Gaussian training imag!

Original

Gaussian distanc!

A blobs Most likely blob

Distance threshold

Median filtered

Page 6: Color based object detection & image segmentation€¦ · Build statistical model of feature distribution for object: Simplest statistical model: Gaussian Over color space: 3D Gaussian

Distance threshold slightly too high...

Gaussian training imag!

Original

Gaussian distanc!

A blobs Most likely blob

Distance threshold

Median filtered

Page 7: Color based object detection & image segmentation€¦ · Build statistical model of feature distribution for object: Simplest statistical model: Gaussian Over color space: 3D Gaussian

Distance threshold way too high...

Gaussian training imag!

Original

Gaussian distanc!

A blobs Most likely blob

Distance threshold

Median filtered

Page 8: Color based object detection & image segmentation€¦ · Build statistical model of feature distribution for object: Simplest statistical model: Gaussian Over color space: 3D Gaussian

Gaussian training imag!

Path segmentation example

Original Gaussian distanc!

Distanc! threshold

Median filtered

Page 9: Color based object detection & image segmentation€¦ · Build statistical model of feature distribution for object: Simplest statistical model: Gaussian Over color space: 3D Gaussian

Stand alone C application:http://mil.ufl.edu/~nechyba/eel6825/source_code.html

Unix/Linux/MacOS XAlso MSWindows w/X!server software

Examples:Object detection/localizationPath identification

Sample code available