torchio icon indicating copy to clipboard operation
torchio copied to clipboard

Randomize k-space filling axis in RandomMotion

Open fepegar opened this issue 5 years ago • 3 comments

fepegar avatar Feb 12 '20 08:02 fepegar

hey man. this issue is a bit vague to me. do you mean shuffling the order in which spectrum fill result_spectrum?

BerserkerMother avatar Feb 14 '22 14:02 BerserkerMother

The final k-space / spectrum is filled from the others always using the last dimension:

https://github.com/fepegar/torchio/blob/eddd02decf2f00777429452e6056fdf72674d8d3/torchio/transforms/augmentation/intensity/random_motion.py#L271-L274

It would be nice if this dimension was selected randomly.

fepegar avatar Feb 14 '22 19:02 fepegar

oh got it. thanks.

BerserkerMother avatar Feb 15 '22 05:02 BerserkerMother