Automatic video segmentation with novel motion analysis and edge processing for accurate identification of object boundaries