These lines limit this transform to 2 keys. We could just as easily accept a sequence of intensity ranges, and then rather than creating two instantiations RandKSpaceSpikeNoise (one for image, one for label), we could just create as many instances as defined keys.
These lines limit this transform to 2 keys. We could just as easily accept a sequence of intensity ranges, and then rather than creating two instantiations
RandKSpaceSpikeNoise(one for image, one for label), we could just create as many instances as defined keys.