How to change classes labels

Hi,
I have 3 different labels in each masks where the classes order is like that:
0 - background,
1 - left lung,
2 - right lung.
Is there a way to change it to:
0 - background,
1 - both lung?
All of these masks are 3D masks provided by CT scan.

Thanks.

Hello @NimaY,

original_segmentation = ...
segmentation = original_segmentation!=0
1 Like

Thank you for your reply.