function [lowpix, highpix] = getrange(pix, lower, upper);
% [lowpix, highpix] = getrange(pix, lower, upper);
% Finds the next pixel values required to be inrange.

lowpix=pix+lower;
highpix=pix+upper;
