imageToWorldPlane
R2026bRectify and align image with reference plane in world coordinate system
Since R2026b
Syntax
Description
rectifies the input image rectifiedImage = imageToWorldPlane(I,intrinsics,tform)I onto the Z=0 world plane
using the camera intrinsic parameters intrinsics and extrinsic rigid
transform tform. The function removes both lens distortion and
perspective distortion, and automatically determines uniform metric sampling from the camera
geometry.
specifies options to control the output spatial referencing or pixel resolution using
name-value arguments.rectifiedImage = imageToWorldPlane(I,intrinsics,tform,Name=Value)
[
also returns the mappings of the pixel locations in the rectified image to world
coordinates.rectifiedImage,Rout] = imageToWorldPlane(___)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
For production vision systems that process many images from the same fixed camera, use
imageToWorldPlaneMappingto precompute the displacement field once, then apply it to each image usingimwarp. This avoids recomputing the geometric mapping for every frame and is significantly faster for batch processing.If you need world coordinates for only a small number of specific points (for example, detected feature locations or centroids), use
imagePointsToWorldPlaneinstead of rectifying the entire image. This is more efficient when an image contains fewer points of interest.
Extended Capabilities
Version History
Introduced in R2026b
See Also
imagePointsToWorldPlane | imageToWorldPlaneMapping | cameraIntrinsics | cameraIntrinsicsKB | rigidtform3d | imref2d | caliper | uicaliper | imwarp

