BurnsAlgorithmV2
Initializations
The Burns Line Extraction Algorithm
Read a Raw PGM Image
Create a Test Image
Gradient estimation
The gradient masks
The procedure to find Gradient Mag and Orientation
Orientation Bucket Labels
Bucket Labeling
Finding the Connected Components in the Bucket Orientation Images
Initialize the label plane and region label sequence
Test Adjoining Neighbors and Update
Propogate the labels along row and columns
Resequence the Region Labels
Connected Components Procdure
Build One List of Edge Support Regions
Find the max value in an image
Remove Small Regions
Make the Regions List
Find Line for Each Region
Plane Fitting, the Mathematics
The x and y values given z and the other.
Solving for the plane
Plane parameters from M and B
M and B matrix from regions
Line from Plane & Extents
Equations for x in terms of y and z, y in terms of x and z.
Procedures for xofy, etc.
3D Coords for Corners of Fit Plane
Line Segment from Plane
Voting for support
Map Regions to Lines
The Complete Algorithm
Test the Algorithm
Write Line Segments to a File
Plot Line Segments