refactoring in opencv_stitching

This commit is contained in:
Alexey Spizhevoy
2011-05-21 11:24:42 +00:00
parent 16e6c45ed7
commit 90ece0b8e5
6 changed files with 15 additions and 41 deletions

View File

@@ -16,7 +16,7 @@ Ptr<Warper> Warper::createByCameraFocal(float focal, int type)
}
void ProjectorBase::setCameraMatrix(const Mat &R)
void ProjectorBase::setTransformation(const Mat &R)
{
CV_Assert(R.size() == Size(3, 3));
CV_Assert(R.type() == CV_32F);
@@ -31,13 +31,6 @@ void ProjectorBase::setCameraMatrix(const Mat &R)
}
Point Warper::operator ()(const Mat &src, float focal, const Mat& R, Mat &dst,
int interp_mode, int border_mode)
{
return warp(src, focal, R, dst, interp_mode, border_mode);
}
void PlaneWarper::detectResultRoi(Point &dst_tl, Point &dst_br)
{
float tl_uf = numeric_limits<float>::max();