NifTK / NiftyNet

[unmaintained] An open-source convolutional neural networks platform for research in medical image analysis and image-guided therapy
http://niftynet.io
Apache License 2.0
1.37k stars 404 forks source link

Add option to use isotropic random scaling #324

Closed fepegar closed 5 years ago

fepegar commented 5 years ago

Status

READY

Description

When performing random scaling, it might be desired to perform the same amount of scaling in every dimension. I have added an isotropic_scaling flag and added the corresponding feature.

Types of changes

Todos

Impacted Areas in Application

List general components of the application that this PR will affect:

Zach-ER commented 5 years ago

https://niftynet.readthedocs.io/en/dev/_modules/niftynet/layer/rand_spatial_scaling.html?highlight=zoom

is this related?

fepegar commented 5 years ago

Yes, very. That's why I modified that code: https://github.com/NifTK/NiftyNet/pull/324/commits/a91644b881192fb68e7faabc2065129f09d5bdd5#diff-5b79901b7b2f56394aca30c562e9e186