I want to transform the following code into ITK(c++ version), But I do not know which functions could do it. HELP!
for c in labels: # labels is list that stores the labelmap's unique value
mask = segmentation==c #segmentation is LabelMap
reshape_multihot = resize(mask,shape.....) # resize import from skimage.transform
reshape[reshape_multihot>=0.5]=c