How do i implement a feature such as (mask=segmentaion==c python language) with c++ itk

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

Hi,

The following may be useful:

1 Like

Thanks, i will check those files.

1 Like