Line Segment Experiment. Instructor: Professor Henderson, Thomas. Student: Chun-Kai Wang. Outline. The line-segment program Prototype The architecture Meaning of each option Examples How to read a pixel region picture in examples Examples of binary image Examples of gray-tone image
Instructor: Professor Henderson, Thomas.
Student: Chun-Kai Wang
% input: img - The input image. It is a binary image or a gray-tone image. Here we assume the foreground color is black and background color is white.
mag_thres - The threshold value that determines the foregrounds and the backgrounds.
zero_thres - The threshold value that determines how many variances from the zero degree can be tolerated.
len - The len value for mark-seeds algorithm.
varargin - Options. Those are strings.
% output: segments - List of begin and end points of line segments.
segs = lineSegs(im00, 0.49, 0.01, 9, ‘thin’, ‘sobel’);