Presentation is loading. Please wait.

Presentation is loading. Please wait.

COMP322/S2000/L181 Pre-processing: Smooth a Binary Image After binarization of a grey level image, the resulting binary image may have zero’s (white) and.

Similar presentations


Presentation on theme: "COMP322/S2000/L181 Pre-processing: Smooth a Binary Image After binarization of a grey level image, the resulting binary image may have zero’s (white) and."— Presentation transcript:

1 COMP322/S2000/L181 Pre-processing: Smooth a Binary Image After binarization of a grey level image, the resulting binary image may have zero’s (white) and one’s (black) at undesirable places. Examples: “Black Spot”“Hole” “Missing Corner” “Bump”

2 COMP322/S2000/L182 Pre-processing: Smooth a Binary Image Need to define algorithms to “remove” these “unwanted” one’s and zero’s. One possible solution: use a 3x3 template Image window centered at p : Basic Boolean Operations: Complement: AND OR+

3 COMP322/S2000/L183 Pre-processing: Smooth a Binary Image Boolean Expressions: (1- black; 0 - white) (Examples given in class) B1: B2: B3: B4:

4 COMP322/S2000/L184 Pre-processing: Smooth a Binary Image Boolean Expressions: (1- black; 0 - white) (Examples given in class) B5: B6:

5 COMP322/S2000/L185 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition l Illumination, i.e. lighting consideration l Lenses, and Cameras l Digitizers B. Pre-processing l Enhancement, i.e. smoothing, edge detection l Segmentation (Binarization) C. Recognition l Feature extraction l Pattern matching D. Part Manipulation l Choice of robot, gripper l Orientations of gripper, camera, part w.r.t robot base

6 COMP322/S2000/L186 Recognition: Feature Extraction Example: A binary image 0 1 2 3 4 5 6 7 8 00 0 0 0 0 0 0 0 0 1 0 0 1 1 1 1 0 0 0 Question: How to identify these 2 objects? 2 0 0 1 1 1 1 0 0 0 3 0 0 1 1 1 1 0 0 0 Objects are connected components 4 0 0 0 0 0 0 0 0 0==> Connectivity 5 0 1 1 1 1 0 0 0 0==> 4-connected (4-neighbours) 6 0 1 1 1 1 0 0 0 0==> 8-connected (8-neighbours) 7 0 1 1 1 1 0 0 0 0 8 0 1 1 1 1 0 0 0 0 Each object has different labels 9 0 0 0 0 0 0 0 0 0==> Labeling

7 COMP322/S2000/L187 Recognition: Feature Extraction Labeling: Given a binary image, different objects has different labels. (no one perfect algorithm) 0 1 2 3 4 5 6 7 8 00 0 0 0 0 0 0 0 0 Idea: - Proceed from top-left (0,0) to bottom- 1 0 0 1 1 1 1 0 0 0 right (N x, N y ) searching for “1”; 2 0 0 1 1 1 1 0 0 0 - Give the same label if 8-connected; 3 0 0 1 1 1 1 0 0 0 - Give a different label if not connected. 4 0 0 0 0 0 0 0 0 0 5 0 2 2 2 2 0 0 0 0 6 0 2 2 2 2 0 0 0 0 7 0 2 2 2 2 0 0 0 0 8 0 2 2 2 2 0 0 0 0 9 0 0 0 0 0 0 0 0 0

8 COMP322/S2000/L188 Recognition: Feature Extraction Boundary Representation: (Chain code) Convention (8-connected): 0 1 2 3 4 5 6 7 8 00 0 0 0 0 0 0 0 0 1 0 0 1 1 1 1 0 0 0 2 0 1 1 1 1 1 1 0 0Example: Starting pixel is (2,1) 3 0 0 1 1 1 1 0 0 0 Boundary: (0,0,0,7,5,4,4,4,3,1) 4 0 0 0 0 0 0 0 0 0 (Try other examples on your own) 3 2 1 4 (x,y) 0 5 6 7

9 COMP322/S2000/L189 Recognition: Region Representation Run Length Encoding: Idea is to reduce storage. The lengths of “1”s and “0”s are encoded. The first integer indicates the value of the starting pixel and is followed by the lengths. 0 1 2 3 4 5 6 7 8Example: (image: 9x5 bytes) 0 0 0 0 0 0 0 0 0 0 Run Length: (0,11,4,6,4,4,4,6,5,1) (10 bytes) 1 0 0 1 1 1 1 0 0 0 2 0 0 0 1 1 1 1 0 0 3 0 0 1 1 1 1 0 0 0 4 0 0 0 1 1 1 1 1 0 0 1 1 0 0 1 1 1 0 0Run Length: (1,2,2,3,4,3,8,2,4,3,8,3,3) 1 0 0 1 1 1 0 0 0 0 (13 bytes) 2 0 0 0 0 1 1 0 0 0 3 0 1 1 1 0 0 0 0 0 4 0 0 0 1 1 1 0 0 0

10 COMP322/S2000/L1810 Recognition: Region Representation Quad-tree Representation: Idea:- Root represents the whole image - each node has maximum of 4 descendants - each node represents (2 i x 2 i ) pixels of the same value, (i=0,..., k). Examples given in class.


Download ppt "COMP322/S2000/L181 Pre-processing: Smooth a Binary Image After binarization of a grey level image, the resulting binary image may have zero’s (white) and."

Similar presentations


Ads by Google