Open soumickmj opened 4 years ago
Not 100% sure that I understand you. Are you trying to use B-Spline transformation to generate random elastic deformation?
If so, you can use the B-spline kernel transformation module. Filling the self.trans_parameters
with randomly sampled parameters from a Gaussian or uniform distribution, and call the forward()
method to get the dense displacement field.
Its actually not an issue, rather I have a question. I'm trying to use BsplineTransformation for Random Elastic Deformation. For the same, I would like to set custom parameters for the BSpline transformation. Can someone recomand some way for doing the same? Thanks.