Description: This function provides a gray scale stretching function of the input image should be grayscale image, but if not provided, then gray image, the function will automatically be converted to grayscale image form. x1, x2, y1, y2 should use double precision storage, image matrix can store any type of MATLAB support.
File list (Check if you may need any files):
imgrayscaling.m