as you said, noise and other non-stationary parts of your background can cause segmentation problems, I mean changes in lighting or other moving things in the background.
- , , .
( ) . , , , . , .
, , , , . - Median Filter Morpholocigal Operators () . .
, ...