|
Algorithm 1 Standing-pigs detection algorithm |
Input: Depth Image Output: Detected Image
Step 1:
While moving noise remaining
Apply spatiotemporal interpolation;
Subtract with ;
Step 3:
If threshold1
subtracted pixel value
threshold2:
Determine as candidates for standing-pigs;
Else:
Determine as a noise and remove it on the area;
Detect edges of candidates;
Step 4:
Overlap into ;
If outline and edge on the same area:
Determine as an outline;
Else:
Determine as a noise and remove it on the area;
Step 5:
Merge with ;
If candidate pigs touch outlines:
Detect standing-pigs;
Else:
Determine as a noise and remove it on the area;
|