Figure 5: Steps for determining straightness: (a) Original RGB image of the sample pipe (b) Gray-scale
image of the pipe (c) Pipe Edge detected by applying algorithm (d) Reference line drawn to measure
the deflection from the reference line with scaling factor