Create bird's-eye view using inverse perspective mapping
Use the birdsEyeView
object to create a bird's-eye view of a
2-D scene using inverse perspective mapping. To transform an image into a bird's-eye
view, pass a birdsEyeView
object and that image to the transformImage
function. To convert the bird’s-eye-view image
coordinates to or from vehicle coordinates, use the imageToVehicle
and vehicleToImage
functions. All of these functions assume that the input
image does not have lens distortion. To remove lens distortion, use the undistortImage
(Computer Vision Toolbox) function.
birdsEye = birdsEyeView(sensor,outView,outImageSize)
creates a birdsEyeView
object for transforming an image to a bird’s-eye-view.
sensor
is a monoCamera
object that defines the configuration of the camera sensor. This
input sets the Sensor
property.
outView
defines the portion of the camera
view, in vehicle coordinates, that is transformed into a
bird's-eye view. This input sets the OutputView
property.
outImageSize
defines the size, in pixels,
of the output bird's-eye-view image. This input sets the
ImageSize
property.
transformImage | Transform image to bird's-eye view |
imageToVehicle | Convert bird's-eye-view image coordinates to vehicle coordinates |
vehicleToImage | Convert vehicle coordinates to bird's-eye-view image coordinates |