optimized ScalarImage.sample : - avoids double call to isDefinedAt by calling immediately f - pre-computed conversion of outside value
optimized ScalarImage.sample :
- avoids double call to isDefinedAt by calling immediately f
- pre-computed conversion of outside value

unibas-gravis/scalismo