Created by Harrison Cattell, 2017
A self-made implementation of a piece-wise linear transformation (Contrast stretching). Please read function file for information regarding parameters, use, etc.
For more information on the workings of nearest-neighbour interpolation, please check out this link