Implement InitThird for grabcut.