Skip to content
Discussion options

You must be logged in to vote

Hi, I don't think RandDeformGrid does what you're expecting it to do. For RandDeformGrid you pass spatial dimensions as argument, and it will return you a random control grid of this size.

I suspect you want to apply random non-rigid deformations? In which case you would want to use Rand3DElastic (or Rand2DElastic for 2D data).

Note that these elastic classes can also apply random rotations, translations, shears and scaling, so perhaps you can consolidate all your random transformations, and use just Rand3DElastic.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mariakawula
Comment options

@ankitabuntolia
Comment options

@Nic-Ma
Comment options

Answer selected by mariakawula
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants