pixel_to_world
Convert image pixel coordinates to 3D world points by intersecting camera rays with a floor or custom plane, so you can measure positions and sizes from a photo after camera matching.
Instructions
Turn picture pixels into world points. A ray goes from the camera through each pixel and hits the plane z=plane_z
(the floor by default) or plane {"point": [x,y,z], "normal": [x,y,z]}. pixels is a list of [x, y]: x to the
right, y down, from the top left of a picture of image_size [width, height]. It uses the field of view, the sensor
fit, the lens shift and orthographic cameras. A point is null if the ray is parallel to the plane or the plane is
behind the camera. Use it to read sizes and positions off a photo after match_camera (for example the width of
something that stands on the floor). Heights above the plane cannot be read from one view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plane | No | ||
| camera | Yes | ||
| pixels | Yes | ||
| plane_z | No | ||
| image_size | Yes |