Research Article
Cloud Model-Based Method for Infrared Image Thresholding
Algorithm 1
Cloud model-based method for infrared image thresholding.
Input: | the original image . | Output: | the optimal threshold and the result image . | () For the original image , obtain the initial information, such as the number of pixels , the grayscale level , and then calculate | the histogram . | () Initialize the parameters, including the optimal criterion value and the optimal threshold . | ; . | () for to do | () Obtain the classes of background and object. | ; . | () if or then | () Eliminate the extreme cases. | . | () else | () Calculate the standard deviations , of background and object using (3). | () if and then | () Generate the cloud models for background and object using (10)–(12). | ; . | () Calculate the criterion value according to (13). | . | () else | () Eliminate the extreme cases. | . | () end if | () end if | () if then | () Swap the global optimum for the current best. | ; . | () end if | () end for | () Segment the image with the above threshold , denoted as the result image . | | () return . |
|