Main Content


Return image captured with camera


    image = read(camera) returns an image that is captured with the ideal camera specified by camera in the Simulation 3D Environment (game engine)

    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