Research Article
LoCoBoard: Low-Cost Interactive Whiteboard Using Computer Vision Algorithms
Algorithm 1
Pseudo code Algorithm A1.
function ALGORITHM image_height, image_width, image, threshold return coordinates of the PL | centroid | inputs: image_height, height of the image | image_width, width of the image | image, captured grayscale image | threshold, lower limit of brightness to identify pixels belonging to PL blob | size 0 | colValue 0 | rowValue 0 | row 0 | row image_height | column 0 | while columnimage_width | if [row][column] threshold then | colValue colValue column | rowValue rowValue row | size size 1 | column column 1 | row row 1 | colValue colValue/size | rowValue rowValue/size | return rowValue, colValue) |
|