%Given an input image and a Fourier coefficient threshold, calculates a
%"highpass" threshold vector for use with compressImg.

function [planevector] = createHighpass(inImg, slope, threshold)    
    %Create a linear equation that has the same dimensions as the fft.
    y = 0:size(inImg, 1)-1;
    
    planevector = [];
    
    %There's probably a more elegant way to do this over two variables.    
    for x = 0:size(inImg, 2)-1
        planevector(:,x+1) = (y+x) .* slope + threshold;
    end    
end