Calculates gaussian kernel weights and offsets from a binomial distribution and optionally adjust the weights and offsets for a linearly-sampled gaussian blur.