Research Article
A Comparative Study of Human Thermal Face Recognition Based on Haar Wavelet Transform and Local Binary Pattern
Algorithm 1
LabelConnectedComponent(im).
//LabelConnectedComponent(im) is a method which takes//one argument that is an image | named if.(,) is the current pixel on th row and th column. | () Consider the whole image pixel by pixel in row wise manner in order to get connected | component.Let be the current pixel position | if (==1) and does not any labelled neighbour in its 8-connected | neighbourhood) then | Create a new label for . | else | if ( has only labelled neighbour) then | Mark with that label. | else | if ( has two or more labeled) then | Choose one of the labels for and memorize that these labels are equivalent. | () Go another pass through the image to determine the equivalencies and labeling each pixel | with a unique label for its equivalence class. |
|