1/62
Looks like no tags are added yet.
Hough Transform
A generic framework for detecting a parametric model by a voting process that is commonly used to detect lines, circles, and other parametric shapes in image from imperfect edge detections.
Edge Pixels to Lines
While algorithms like Canny detect local edge pixels, they do not group pixels into a shape model. The Hough transform groups supporting edge pixels together, allowing it to detect shapes across gaps, noise, and partial occlusions. A detected line is only a model prediction, not an observed edge.
A Line Becomes a Point
In an image space, a line has the equation y = mx + b. In a parameter space, a point specifies an entire line (m, b). The parallel lines share the same m coordinate but have different b coordinates while lines with the same intercept share the same b coordinate but can have different m coordinates.

Line Estimation from an Edge Point
Given a point (x, y) on an image edge that is used to estimate its line parameters:
The image gradient (Ix, Iy) is perpendicular to the edge.
The line parameters can be estimated as:
m = - Ix / Iy, b = y - mx
Each edge point now supplies an estimated line (m, b) that can be counted.

Voting in the Hough Space
Given the parameters m and b are continuous, divide their ranges into a grid of bins.
Initialize every bin to zero.
Estimate (m, b) at an edge point.
Add one to the bin containing that estimate.
Repeat for the other edge points.
Noise, corners, and other edges spread voters across additional bins while a large count indicates strong support for a line with that bin’s parameters.

Image Point to Hough Line
For a fixed point (x0, y0), y0 = mx0 + b → b = -x0m + y0.
In the image space, x0 and y0 are fixed: only one point. In Hough space, m and b vary: all possible lines go through that point. The Hough-space line has slope -x0 and intercept y0.

Hough Voting for Lines
Create a grid of slope and intercept bins.
For each edge point (x, y):
Try each sampled slope m.
Compute b = y - mx.
Increment the corresponding (m, b) bin.
Find strong, separated peaks.
Map each peak back to an image line y = mx + b
Representing a Line with Distance and Angle
Used to represent all line orientations without unbounded slopes and intercepts. Instead of slope and intercept (m, b), describe a line using (r, θ):
θ is the angle of the line’s normal, measured from the positvie x axis in the range 0 ≤ θ < 180∘.
r is the signed perpendicular distance from the origin. The geometric distance is |r|.
Given image gradient (Ix, Iy) or line equation y = mx + b:
θ = atan2(Iy, Ix) mod π, or θ = atan2(1,−m).
r = xcosθ + ysinθ for any point (x,y) on the line, or r = b/√m2+1
If r > 0, the closest point on the line lies along the chosen normal from the origin.
If r < 0, it lies in the opposite direction.

Polar Hough Voting
Dividing the hough space into angle and distance bins, use 0 ≤ θ < 180∘, and −D ≤ r ≤ D. For a W × H image, D = √(W - 1)2 + (H - 1)2. A vertical line x = c has θ = 0⁰ and r = c, while a horizontal line y = c has θ = 90⁰ and r = c.
Steps:
For each edge point (x, y), try each sampled angle θ.
Compute r = xcosθ + ysinθ and increment the corrsponding bin.
Find strong peaks to identify supported line models.

Circle Detection
A circle has center (a, b) and radius r: (x - a)2 + (y - b)2 = r2
If r is known, an edge point (x, y) voted for all centers (a, b) at distance r from it.
Points on the same image circle support a shared center. Binning these votes produces a peak.

Gradient-Based Radii Search
When the radius is unknown, the full parameter space three-dimensional: (a, b, r).
A direct approach repeats center voting for each tested radius.
Gradient directions reduce the search: a circle’s normal passes through its center.
For a unit gradient direction g at an edge point, [a b] = [x y] ± rg.
Steps:
Find edges and their gradient directions.
Vote for centers along those directions.
Estimate radii supported by edges around each candidate center.
![<p>When the radius is unknown, the full parameter space <strong>three-dimensional</strong>: (a, b, r).</p><ul><li><p>A direct approach repeats center voting for each tested radius.</p></li><li><p>Gradient directions reduce the search: a circle’s normal passes through its center.</p></li></ul><p>For a unit gradient direction <span style="line-height: normal;">g at an edge point, [a b] = [x y] </span><span>± rg.</span></p><p>Steps:</p><ol><li><p>Find edges and their gradient directions.</p></li><li><p>Vote for centers along those directions.</p></li><li><p>Estimate radii supported by edges around each candidate center.</p></li></ol><p></p>](https://assets.knowt.com/user-attachments/7418ebf9-ba37-49d8-aeee-dfae847b6563.png)
Grayscale Image
A H × W matrix with one intensity value per pixel. For an 8-bit image, the values rnage from 0 (black) to 255 (white). Python indexes the image as gray[y, x] : row first, column second.
![<p>A H × W matrix with one intensity value per pixel. For an 8-bit image, the values rnage from <strong>0 (black) </strong> to <strong>255 (white)</strong>. Python indexes the image as <code>gray[y, x]</code> : <strong>row first, column second</strong>. </p>](https://assets.knowt.com/user-attachments/e853019f-4b59-4b94-858a-0420168d63bd.png)
RGB Image
Three H × W matrices: red, green, and blue. Together, they form an array with shape (H, W, 3). I(y, x) = [R(y, x) G(y, x) B(y, x)]
Visible Light
A small part of the electromagnetic spectrum that has a wavelength in the range of approximately 400-700 nm.

Camera Capturing Color
With three sensors, a prism separates light into three paths, one for each color channel. With one sensor, a color filter array lets each sensor location measure one color component. For a Bayer pattern, each 2 × 2 Bayer block contains two green, one red, and one blue sample. This is because human vision is most sensitive to green, where the M and L cones overlap such that green carries most of perception.

Demosaicing
Estimates the two missing color components at each sensor location using nearby samples.
At the center, green is measured directly: G^C = GC
Estimate red and blue by averaging nearby samples: R^C = (RL + RR)/2, B^C = (BU + BD)/2
The reconstructed pixel is I^C = [R^C GC B^C]
![<p>Estimates the two missing color components at each sensor location using nearby samples.</p><p>At the center, green is measured directly: G<sup>^</sup><sub>C </sub>= G<sub>C</sub></p><p>Estimate red and blue by averaging nearby samples: R<sup>^</sup><sub>C</sub> = (R<sub>L</sub> + R<sub>R</sub>)/2, B<sup>^</sup><sub>C</sub> = (B<sub>U</sub> + B<sub>D</sub>)/2</p><p>The reconstructed pixel is I<sup>^</sup><sub>C</sub> = [R<sup>^</sup><sub>C</sub> G<sub>C</sub> B<sup>^</sup><sub>C</sub>]</p>](https://assets.knowt.com/user-attachments/3fef1cb5-ce7f-4b5d-8611-b404c43dca76.png)
RGB
A color space that uses red, green, and blue components and is widely used for images and displays. This is an additive model: adding colored light produces brighter colors.
CMYK
A color space that uses cyan, magenta, yellow, and black inks in a subtractive model: inks absorb light. Commonly used for printing.
HSV: Hue, Saturation, and Value
Hue describes the color, saturation its departure from gray, and value the largest RGB component. Useful for selecting and tracking objects by color. Hue separates colors; saturation and value help exclude nearly gray or very dark pixels. Hue is unreliable when saturation or value is very small.

YCbCr: Luma and Chroma
Y represents luma; Cb and Cr represent blue- and red-difference chroma. Used in image/video compression: chroma can be stored at lower resolution than luma.

CIELAB: Lightness and Color Differences
L∗ describes lightness; a∗ runs from green to red, and b∗ from blue to yellow. Approximately perceptually uniform: distances are useful for comparing colors and grouping similar colors.

Optical Flow
Describes the apparent motion of image points between video frames. A point at (x, y) moves to (x + u, y + v), giving a displacement vector (u, v). Motion can result from movement of the object, the camera, or both.

Sparse and Dense Optical Flow
Sparse optical flow: Estimated displacement at selected image points.
Dense optical flow: Estimated displacement at every pixel.
Sparse estimates are often used for tracking selected features while dense estimates describe motion across the image, including regions with different motions.

Brightness Constancy
Given that brightness stays the same as a point moves between frames, a scene point would keep its intensity as it moves: I(x, y, t) = I(x + u, y + v, t + 1)

Optical Flow Equation
Ixu + Iyv + It = 0
Ix, Iy: spatial image gradients.
It ≈ I(x, y, t + 1) − I(x, y, t): change of intensity at a fixed pixel.
The approximate is bad when u or v is large compared with how smoothly the image varies.
Recovering (u, v) From The Optical Flow Equation
Given Ix, Iy, It, (u, v) cannot be recovered from the optical flow equationIxu+Iyv+It=0 since there’s one equation per pixel and two unknowns.
If (u, v) satisfies ∇I⋅(u,v)+It=0, so does (u+u′,v+v′) for any (u′,v′) with ∇I⋅(u′,v′)=0.
Only the flow component along the gradient can be recovered:
un=−∣∇I∣It

Lucas-Kande
Resolves underdetermination by assuming spatial coherence: pixels in a small local window (e.g., 5 × 5) move together with the same displacement vector (u, v).
A 5 × 5 window gives 25 equations:

Solving for (u, v), Least squares:
ATAd=ATb⇒d=(ATA)−1ATb
Summing over the pixels in the window:

Least squares finds the (u, v) that best satisfies all lines.
Conditions for (u, v) to be solved:
ATA must be invertible: in a uniform region it is singular
ATA must not be too small: otherwise noise dominates
ATA must be well-conditioned: a large λ1/λ2 indicates and edge
ATA is the second moment matrix M from Harris corners: good corners give reliable flow
Implementation:
ComputeIx,Iy from a smoothed frame and It from the frame difference
Sum products over the window to form ATA and ATb
Skip the window if the smaller eigenvalue of ATA is too small
Solve the 2 × 2 system for (u, v)
Fails at:
Large motion: the Taylor approximation breaks down
Occlusions: points appear or disappear
Lighting changes, noise: brightness constancy is violated
Textureless regions: ATA is nearly singular
Edges (apeture problem): ATA is ill-conditioned
Coarse-to-Fine Lucas-Kanade
Given that each Guassian pyramid level halves the image size, it will also half the displacement.
Algorithm:
Build Gaussian pyramids of both frames
Estimate flow at the coarsest level
Upsample the flow to the next level and double its values
Warp frame 2 toward frame 1 using the current flow
Estimate the remaining flow with Lucas-Kanade and add it
Repeat until the finest level
Warping uses the current flow estimate (u0, v0) to resample frame 2, pulling each pixel back by the motion already found:
I2warped(x,y)=I2(x+u0,y+v0)
Farnebäck & DIS
Farnebäck: Fits 2D quadratic polynomials to local pixel neighborhoods to estimate dense flow fields.

DIS: Short for Dense Inverse Search. Runs a fast Lucas–Kanade-style search on a grid of patches, then combines and refines their motion estimates into a dense field.

Bare Sensor vs. Pinhole
Bare Sensor: Every scene point reaches every pixel, so every pixel records nearly the same average color.
Pinhole: The barrier blocks all but one ray from each point, so each pixel sees one scene point: displays an inverted image.

Pinhole Camera Terms
The pinhole is the camera center (center of projection): every ray that forms the image passes throught it.
The sensor lies in the image place, a distancef(the focal length) behind the pinhole.

Focal Length
The image size is
fH /Z: doublingfdoubles the image and narrows the field of view. With the same pinhole, the light reaching each pixel is proportional to 1/f2: doublingfgives ¼ of the light.

Pinhole Size
Light collected grows with the pinhole’s area (∝d2), but each scene point spreads over a spot of size ∝d. A very small pinhole makes the image sharp but dark; below a certain size, diffraction blurs the image again, so the pinhole cannot be made arbitrarily small.

Lens Camera
A lens collects a bundle of rays from each scene point and focuses them back to one image point: far more light than a pinhole, without the blur. The central ray (thick) passes through the lens center undeflected, just as through a pinhole. When the lens is in focus, the pinhole model gives where each point lands.

In a lens camera, the focal lengthf is the distance at which parallel rays intersect (the focal point F). The image of an object at distanceDforms at the focus distanceD′:D1+D′1=f1.
The pinhole model is describing a lens camera if:
Only central rays are used
The lens is in focus
The pinhole’s focal length equals the lens’s focus distanceD′; for a distant object,D′=f.
For this exam, the focal lengthfmeans the aperture-sensor distance, as in the pinhole camera.

Virtual Image Plane
To avoid mathematically dealing with upside-down (inverted) images, a virtual image plane is placed at focal lengthf in front of the camera center. The camera center gives the same image and the same size as the Pinhole Camera, but upright.

Camera Coordinate Frame
The origin is at the camera center. Convention: x right, y down, z forward.
Th z-axis is the principal (optical) axis, which meets the image plane (z=f) at the principal point.
A 3D point cX=(X,Y,Z) in camera coordinates projects to the point x=(x,y) where the ray to the camera center crosses the image plane.

Perspective Projection
Using similar triangles, a 3D point(X,Y,Z)in camera coordinates projects to image plane coordinates(x,y) via:
x=fZX,y=fZY
The division byZmakes the projection nonlinear in(X,Y,Z) . Homogeneous coordinates make it a matrix product.

Consequences:
Size∝1/Z: doubling the distance halves the image of the cube.
Depth is lost: every point on a ray through the camera center projects to the same image point.
Vanishing points: parallel 3D lines (the rails) meet at one image point, on the horizon

Homogeneous Coordinates
Adds an extra scale coordinate to vectors: A 2D point(x,y)becomes a 3D vector [x,y,1]T, a 3D point(X,Y,Z) becomes a 4D vector[X,Y,Z,1]T
Converting To and From Homogeneous:

Scaling a homogeneous vector does not change the point it represents. w=0 has no Cartesian equivalent: it is a point at infinity, such as the vanishing point where parallel lines meet.

Homogeneous Coordinates Scale Invariance
All multiples of a homogeneous vector are the same point:
kxyw∼xyw,k=0
So a 2D point is a ray through the origin, with its Cartesian coordinates being where the ray crosses the plane w=1 .
In a pinhole camera, every 3D point on a ray through the camera center lands on the same image point (scale ambiguity).

Parametric Transformation
A transformation T maps every pointp=(x,y)to a new point p’=T(p).
Parametric: T is described by a few numbers (its parameters).
Global: the sameTapplies to every point of the image.
If Tis linear, it is a matrix:p′=Mp


2D Transformation Matrices
Scale, shear, and rotation are linear: they keep the origin fixed. Translation is not, so it has no 2×2 matrix.
In homogeneous coordinates, every one of them is a 3 × 3 matrix.

Composing Transformations
A chain of transformation is one matrix, with the rightmost applied first. Order matters:TR=RT

The 2D Transformation Hierarchy
Rigid (Euclidean): Combines 3D rotationRand translationt (X′=RX+t). Preserves distances, lengths, and angles.
Similarity: Rigid transformation plus uniform scaling (s). Preserves angles and shape ratios.
Affine: Preserves straight lines, parallelism, and midpoints/ratios along lines.
Projective (Homography): Represented by a 3 × 3 matrix H for 2D planes. Preserves straight lines, but does NOT preserve parallelism or midpoints.
Homography Condition: A single 3 × 3 matrix H relates images across views only if the scene is strictly planar (2D) or if the camera undergoes pure rotation

Affine Transformations
Any combination of linear transformations and translation:
x′y′1=ad0be0cf1xy1
Has 6 DOF; the last row is always[001].
Properties:
Lines map to lines
Parallel lines stay parallel
Ratios along a line are kept (a midpoint stays a midpoint)
Closed under composition

Projective Transformations
A general 3 × 3 matrix in homogeneous coordinates:
x′y′w′=h11h21h31h12h22h32h13h23h33xy1
Divide by w′ to get the point: a projective warp.
Has 8 DOF: H is defined only up to scale.
Properties
Lines map to lines
Parallel lines do not stay parallel
Ratios are not kept
Closed under composition

Rigid Transforation
A 3D rigid transformation[R∣t] can move a point within one frame, or change frames (i.e., give the coordinates of one fixed point in another frame).
Transformation Formula:

Columns of bRa: the axes of a in frame b.
bta: the origin of a in frame b.
Inverse Formula:

Composition Rule: Multiple frame changes chain together by matrix multiplication: cTa = cTb bTa
![<p>A 3D rigid transformation$$[\mathbf{R}\mid\mathbf{t}]\,$$ can <strong>move a point </strong>within one frame, or <strong>change frames </strong>(i.e., give the coordinates of one fixed point in another frame).</p><p><strong>Transformation Formula</strong>:</p><img src="https://assets.knowt.com/user-attachments/7b0966dc-17d8-41e4-aee8-61d10a9d04c3.png" data-width="100%" data-align="center" alt="" style="display: block; width: 100%; margin-left: auto; margin-right: auto;"><ul><li><p>Columns of <sup>b</sup>R<sub>a</sub>: the axes of a in frame b.</p></li><li><p><sup>b</sup>t<sub>a</sub>: the origin of a in frame b.</p></li></ul><p><strong>Inverse Formula</strong>:</p><img src="https://assets.knowt.com/user-attachments/2619e50d-31e1-411a-8b12-549b21874888.png" data-width="100%" data-align="center" alt="" style="display: block; width: 100%; margin-left: auto; margin-right: auto;"><p><strong>Composition Rule</strong>: <span>Multiple frame changes chain together by matrix multiplication: </span><span style="line-height: normal;"><sup>c</sup>T<sub>a </sub>= <sup>c</sup>T<sub>b </sub><sup>b</sup>T<sub>a</sub></span></p>](https://assets.knowt.com/user-attachments/4a84b349-7af1-4c04-be6d-0ee0073895bf.png)
Full Camera Model
Mapping a 3D world point wX=[Xw,Yw,Zw,1]T to a pixel x=[u,v,1]Trequires three sequential matrix operations:
Extrinsics: world frame → camera frame
Perspective Projection: camera frame → image plane
Intrinsics: image plane → pixels
Each step is a matrix in homogeneous coordinates, making the whole camera model one matrix.
![<p>Mapping a 3D world point $$^{w}\mathbf{X} = [X_w, Y_w, Z_w, 1]^T$$ to a pixel $$\mathbf{x} = [u, v, 1]^T$$requires three sequential matrix operations:</p><ol><li><p>Extrinsics: world frame → camera frame</p></li><li><p>Perspective Projection: camera frame → image plane</p></li><li><p>Intrinsics: image plane → pixels</p></li></ol><p>Each step is a matrix in homogeneous coordinates, making <strong>the whole camera model one matrix</strong>.</p>](https://assets.knowt.com/user-attachments/2c100c36-13f6-4336-8681-f67e988e5b1a.png)
Extrinsics
Transforms 3D points from world coordinates to camera coordinates. Points are given in a world frame w; projection needs them in the camera frame c:
cX=RwX+t cT=[R0t1]
The Extrinsic Matrix is the top three rows of cT:[R∣t](3 × 4).
The camera center wC maps tocX=0, sot=−RwC.
Has 6 DOF (3 rotation angles for orientation R, 3 translation parameters t for position).
![<p>Transforms 3D points from world coordinates to camera coordinates. Points are given in a <strong>world </strong>frame w; projection needs them in the <strong>camera </strong>frame c:</p><p>$$^{c}\mathbf{X} = \mathbf{R} \, ^{w}\mathbf{X} + \mathbf{t}$$ $$^{c}\mathbf{T}_{}=\begin{bmatrix}^{}\mathbf{R} & \mathbf{t}\\ 0 & 1\end{bmatrix}$$</p><p>The <strong>Extrinsic Matrix </strong>is the top three rows of $$^{c}\mathbf{T}$$:$$[\mathbf{R}\mid\mathbf{t}]\,$$(3 × 4).</p><p>The <strong>camera center</strong> $$^{w}\mathbf{C}$$ maps to$$^{c}\mathbf{X}=0$$, so$$\mathbf{t}=-\mathbf{R^{w}C}$$.</p><p>Has <strong>6 DOF</strong> (3 rotation angles for orientation $$\mathbf{R}$$, 3 translation parameters $$\mathbf{t}$$ for position).</p>](https://assets.knowt.com/user-attachments/7c06684d-0da6-4621-8921-386cd16a52f2.png)
Perspective Projection & Intrinsics
Combining the matrix product of Perspective Projection and the matrix produce of Intrinsics gives the Intrinsic Matrix K, a 3 × 3 upper-triangular matrix containing internal camera parameters:
K=px1000py10cxcy1f000f0001=fx00sfy0cxcy1 ;
K = to pixels (with pixel sizes px×py) × focal length
Parameters (5 DOF):
fx,fy : focal length in pixels, i.e., zoom;fx=pxf,fy=pyf; fx=fy if pixels are not square.
cx,cy: principal point in pixels, usually near the image center.
s: skew; s=0 for almost all modern camera.
Projection:

Intrinsics:

Combined Camera Matrix
Chaining the three steps for the full camera model, with x=(u,v,1)in pixels andλ=Zc:

With the Camera Matrix P having 11 DOF (has 12 entries, but scaling doesn’t change(u,v))
Cube Example:

Geometric Camera Calibration
To calibrate is to estimate the parameters of a camera model for measurements. Geometric calibration estimates the internal geometric parameters of a camera and its 3D pose relative to a target.
Parameters:
Intrinsic Matrix (K): 5 Degrees of Freedom (DOF) defining internal optics and sensor geometry
Lens Distortion Coefficients (d): Non-linear warping parameters introduced by the lens
Target Poses (Rj, tj): Position and orientation of the target relative to the camera for each image view j

Calibration Types
Radiometric: pixel value vs. scene brightness
Color: sensor response vs. true color
Noise: sensor noise level and pattern
Lens aberration: blur, vignetting, chromatic effects
Geometric: where each pixel looks in 3D
Problems Based on Camera Model

Which quantities are known and which are unknown defines the problem:

Linear Calibration via Direct Linear Transform (DLT)
Uses a known 3D target Xi (e.g., two orthogonal planes with known dot positions) and their pixel positions (ui,vi)to solve for the 3×4camera matrix P linearly.
From the camera modelλuivi1=p1Tp2Tp3TXi, we have:
λui=p1TXi,λvi=p2TXi,λ=p3TXi
Substituting λ=p3TXi in the first two equations gives two equations per point, both linear in the 12 entries of P :
p1TXi−uip3TXi=0, p2TXi−vip3TXi=0
Stack these two rows of every point intoAand solve
Ap=0 with the SVD:

P has 11 DOF which requires at least 6 non-coplanar 3D points (with each point providing 2 equations). P can be positive or negative; keep the sign that puts the points in front of the camera.
RQ Decomposition of Linear Calibration
Given the left 3 × 3 block of P is M=KR, RQ decomposition splits M into these two factors (“R” = upper triangular K, “Q” = rotation R).
With p4 the last column of P: t=K−1p4 , C=−M−1p4
Limits of Linear Calibration
No lens distortion. A wide-angle lens bends straight lines, which no P can model.
Wrong Error Metric: Minimizes algebraic error ∥Ap∥, rather than geometric distance in pixels.
Unconstrained: Hard to enforce physical constraints (such as zero skew s=0).
Degeneracy on Flat Targets: Fails if all points lie on a single 2D plane (Z=0), causing column degeneracy in A (columns of A that multiply Z are zero.
Linear calibration is only used as an initial guess for non-linear optimization.
Nonlinear Calibration
Compares observed image points xi=(ui,vi) with the points predicted by the camera model.
The reprojection error is their distance in pixels, summed over all points:
E=j∑i∑∥xij−π(K,d,Rj,tj,Xi)∥2
d: lens distortion coefficients
Rj,tj: one extrinsic pose of per view j
π(⋅): the camera model
With E being nonlinear in parameters.
Lens Distortion Model
Distortion acts on the image coordinates (x,y), before K:
cX→(x,y)=(cZcX,cZcY)→(xd,yd)→(u,v)
(x,y): where an ideal pinhole camera sees the point.
(xd,yd): where the lens actually puts it.
With r2=x2+y2 (squared distance from the principal point):


Radial Distortion
The radial terms scale (x,y) along its ray from the principal point: [xdyd]=s(r)[xy], s(r)=1+k1r2+k2r4+k3r6.
Only the distance from the center changes, from r to rd=xd2+yd2=rs(r)
Barrel Distortion (k1<0,s<1): points move toward the center
Pincuchion Distortion (k1>0,s>1): points move away from the center
Straight line not through the center become curved, with the intensity of the curve growing with r.

Tangential Distortion
The tangential terms shift points sideways, not along their ray from the center:

Caused by lens elements being slightly tilted or off-center relative to the sensor.
Modern camera have insignificant distortion.

Wide Lenses
A pinhole maps a ray at angle θ from the optical axis to radius r=ftanθ, which grows to infinity at 90°.
Fisheye lenses use a mapping close to r=fθ, so they can see at 180° or more.
Omnidirectional camera allow field of view ≥ 180°, or a curved mirror in front of the lens.
Rule of thumb: radial-tangential up to a field of view (FOV) of about 100°-120°, i.e., θ up to 50°-60° at the image edge, beyond that use fisheye or omnidirectional.
Common Calibration Targets

Rules of Collecting Useful Calibration Images
Lock Camera Settings: Focus, zoom, and resolution must be fixed; altering any parameter changes K.
Use a Rigid, Flat Board: Paper targets must be mounted on a flat, stiff surface to prevent warping
Dataset Variety: Capture 20–30 sharp images. Tilt the board up to ∼45∘ in different directions and cover the outer edges and corners of the image where distortion is highest.
Vary the distance, but keep the board large enough for accurate corners.