imageToWorldPlaneMapping
R2026bCompute displacement field to map image plane with reference plane in world coordinate system
Since R2026b
Syntax
Description
computes a displacement field, D = imageToWorldPlaneMapping(intrinsics,tform)D, that maps image pixels onto the
Z=0 world plane using the camera intrinsic parameters
intrinsics and extrinsic rigid transform tform.
The displacement field accounts for both the lens distortion and perspective distortion
caused by the camera pose. The function determines the world bounds and pixel resolution
automatically from the camera geometry.
specifies options to control the output spatial referencing or pixel resolution of the
displacement field by using name-value arguments.D = imageToWorldPlaneMapping(intrinsics,tform,Name=Value)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
Use
imageToWorldPlaneMappingfor production vision systems that process many images from the same fixed camera. Precompute the displacement field once during setup, then apply it to each image usingimwarp. This is significantly faster than using theimageToWorldPlanefunction on every frame.If the camera moves or is repositioned, you must recompute the displacement field with the new extrinsic parameters. If the camera has preset positions, save a separate displacement field for each position.
For one-off or exploratory rectification where performance is not critical, use
imageToWorldPlaneinstead.
Extended Capabilities
Version History
Introduced in R2026b
See Also
imageToWorldPlane | imagePointsToWorldPlane | cameraIntrinsics | cameraIntrinsicsKB | rigidtform3d | imref2d | caliper | uicaliper | imwarp

