Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random Elastic using BSpline #33

Open
soumickmj opened this issue Jul 6, 2020 · 1 comment
Open

Random Elastic using BSpline #33

soumickmj opened this issue Jul 6, 2020 · 1 comment

Comments

@soumickmj
Copy link

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.

@qiuhuaqi
Copy link

qiuhuaqi commented Jul 9, 2020

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.

class BsplineTransformation(_KernelTransformation):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants