Moving ship detection based on context modeling and motion analysis