|
Algorithm 1 TDDM |
-
1:
Input: Infrared image c, Number of superpixels K.
-
2:
Output: All defect regions in the infrared image.
-
3:
Obtain instance
-
4:
fordo
-
5:
for do
-
6:
Compute superpixels
-
7:
Obtain temperature characteristic
-
8:
end for
-
9:
Compute temperature probability density distribution
-
10:
Compute the local maximum of , where
-
11:
if then
-
12:
for do
-
13:
if then
-
14:
Determine defective
-
15:
else
-
16:
Determine normal
-
17:
end if
-
18:
end for
-
19:
Merge all adjacent defective superpixels to obtain
-
20:
else
-
21:
Output: No defect in the instance.
-
22:
end if
-
23:
end for
|