Update generategroundtruth.m