Describe the bug
Currently, when we crop samples in RandCropByPosNegLabeld transform, it uses shallow copy for meta_data and other information, then if we change some value in a sample, all the samples are changed.
Need to use deepcopy for it, similar issue to the RandSpatialCropSamplesd.
Describe the bug
Currently, when we crop samples in
RandCropByPosNegLabeldtransform, it uses shallow copy for meta_data and other information, then if we change some value in a sample, all the samples are changed.Need to use
deepcopyfor it, similar issue to theRandSpatialCropSamplesd.