function [w,h] = findcenter(last_roc,roc,last_w,last_h,fpx,fpy,negative)

% David Galus
% Cochlear Research
% Modified: 3:31pm T 6/26/02
% Determines new w and h coordinates for center


if negative == -1
    roc = -roc;
end

w = fpx - (roc/last_roc)*(fpx - last_w);
h = fpy - (roc/last_roc)*(fpy - last_h);