This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'image' | |
function ElasticTransform(img, alpha, sigma) | |
--[[ | |
Parameters | |
---------- | |
img: Tensor of size KxHxW | |
Image on which elastic transformation have to be applied | |
alpha: number | |
Intensity of the transformation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Tested on 14.04 and 14.10. Runs as root because why not | |
## Installs: | |
# - Ubuntu developer tools | |
# - Python (using system 2.7.6 / 2.7.8) | |
# - scipy libs | |
# - scikit-learn | |
# - nltk | |
# - Ruby 2.1.5 | |
# - rbenv | |
# - nokogiri |