summaryrefslogtreecommitdiffstats
path: root/baseline/source/susan/wccfile.c
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2020-10-22 01:48:46 -0400
committerJoshua Bakita <jbakita@cs.unc.edu>2020-10-22 01:48:46 -0400
commit601ed25a4c5b66cb75315832c15613a727db2c26 (patch)
tree62f5188854b6990e66459ca478aac7faec4393c9 /baseline/source/susan/wccfile.c
parentec000645c229660466a4cc0402dbf0f9e63b6ed0 (diff)
Remove an old and broken script
Diffstat (limited to 'baseline/source/susan/wccfile.c')
0 files changed, 0 insertions, 0 deletions
>, a01); % new formalism using homographies a00 = a00 / a00(3); a10 = a10 / a10(3); a11 = a11 / a11(3); a01 = a01 / a01(3); % Prenormalization of point coordinates (very important): % (Affine normalization) ax = [a00(1);a10(1);a11(1);a01(1)]; ay = [a00(2);a10(2);a11(2);a01(2)]; mxx = mean(ax); myy = mean(ay); ax = ax - mxx; ay = ay - myy; scxx = mean(abs(ax)); scyy = mean(abs(ay)); Hnorm = [1/scxx 0 -mxx/scxx;0 1/scyy -myy/scyy;0 0 1]; inv_Hnorm = [scxx 0 mxx ; 0 scyy myy; 0 0 1]; a00n = Hnorm*a00; a10n = Hnorm*a10; a11n = Hnorm*a11; a01n = Hnorm*a01; % Computation of the vanishing points: V1n = cross(cross(a00n,a10n),cross(a01n,a11n)); V2n = cross(cross(a00n,a01n),cross(a10n,a11n)); V1 = inv_Hnorm*V1n; V2 = inv_Hnorm*V2n; % Normalizaion of the vanishing points: V1n = V1n/norm(V1n); V2n = V2n/norm(V2n); % Closed-form solution of the coefficients: