Main Content


Return image captured with camera

Since R2022b


    image = read(camera) returns an image that is captured with the ideal camera specified by camera in the simulation 3D environment.

    Input Arguments

    collapse all

    Virtual camera that captures the image, specified as a sim3d.sensors.IdealCamera object.

    Output Arguments

    collapse all

    Image returned by camera, returned as a real positive array of integers. The size of image is vertical-resolution-by-horizontal-resolution-by-3.

    Data Types: uint8

    Version History

    Introduced in R2022b