completed feature vector coding for both shape_detector_image and shape_detector_video