Linear Point Algorithm and Histogram Generation in Digital Image Processing