implemented nearest performance descriptor matting