Rectangling Panoramic Images via Warping的论文复现 C++实现
因为南开某实验室的考核做的...
(improved) seam carving的实现结果有点问题,有时会产生重复插入引起最终插值结果在Opengl纹理贴图上的扭曲,至今无法解决。
经排查大致认为扭曲撕裂等现象的原因是上述导致的
原论文所说
If we represent the two end points of a line segment as a bilinear interpolation of its quad vertexes Vq, we can write e as a linear function of Vq.
我的实现是逆双线性插值,我也不知道原论文是不是...
In this case E is a quadratic function on V and can be optimized via solving a linear system.
此处我的实现是转成最小二乘估计的形式用最小二乘求解,不知道原论文是否是这个意思
https://github.com/guyuchao/rectangle-panoramic-image
在此基础上改了很多东西..