Research Article
LoCoBoard: Low-Cost Interactive Whiteboard Using Computer Vision Algorithms
Algorithm 3
Pseudo code Algorithm A3.
function ALGORITHM image_height, image_width, image, threshold, step) coordinates of PL centroid, or | failure | 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 | step, interval between consecutive processed pixels per row during search | size 0 | index 0 | while indeximage_height ⋆ image_width do | row index/image_width | column ← index % image_width | image row column ≥ threshold | (centroid.row, centroid.col FINDCENTER(image_height, image_width, image, threshold, row, column) | (centroid.row, centroid.col) | index ← index step | return failure didn’t found any center ⋆ |
|