The threshold value signifies a reference light value for which the program can determine whether it is above a white or black area on the ground. A light value below the threshold leads to the conclusion that the machine is above a black area, while for a value above the threshold, a white area. As such, we would like to use the mean value of black and white as the threshold.
The threshold value signifies a reference light value for which the program can determine whether it is above a white or black area on the ground. A light value below the threshold leads to the conclusion that the machine is above a black area, while for a value above the threshold, a white area. As such, we would like to use the mean value of black and white as the threshold.