warping: 뒤틀림
Image Alignment
we will fit the parameters of some transformation according to a set of matching feature pairs (“correspondences”)
Alignment: Given two images, what is the transformation between them?
Warping: Given a source image and a transformation, what does the transformed output look like?

Gloabl Warping/Transformation

Scaling
a coordinate means multiplying each of its components by a scalar
Uniform scaling: this scalar is the same for all components, x2
Non-uniform scaling: different scalars per component, Xx2 Yx0.5
Rotation


Shear
절단
x' = x + ay
y' = bx + y
in matrix form:
[x'y'][1ab1][xy]
2x2 Image Transformation

• Origin maps to the origin
• Lines map to lines
• Parallel lines remain parallel
• Closed under composition
Translation
x' = x + t_x
y' = y + t_y
matrix representation Impossible! -> 3x3
Homogeneous Coordinates
동차 좌표: n차원 좌표에 한 차원을 덧붙여 표시

Translation

Basic 2D Transformation

Affine Transformation
방향 크기뿐만 아니라 위치도 포함하는 변환

2x2와 다른 점: Origin does not necessarily map to the origin



vectorize transformation parameters?

미분해서 0되는 값 x
outlier에 민감하지 않게 하는 방법
Outlier
• An erroneous pair of matching points from two images
• An edge point is noise, or doesn’t belong to the line we are fitting
RANSAC (RANdom SAmple Consensus)
approach: avoid the impact of outliers, look for inliers
intuition: outlier로 계산할 때 결과 line이 나머지 points의 support를 받지 못한다

사진으로 설명

1 correspondence 뽑음, 나머지 점들을 이 식으로 계산해 잘 짝지어진 inlier 개수를 셈

더 많아서 이 모델을 뽑음
Estimating Affine Transformation using RANSAC
Pros and Cons of RANSAC
Pros
• Simple and general
• Applicable to many different problems
• Often works well in practice
Cons
• Lots of parameters to tune
• Doesn’t work well for low inlier ratios (too many iterations, or can fail completely)
• Can’t always get a good initialization of the model based on the minimum number of samples