{"id":45436424,"url":"https://github.com/stereolabs/zed-matlab","last_synced_at":"2026-02-22T03:08:56.976Z","repository":{"id":142019738,"uuid":"51925990","full_name":"stereolabs/zed-matlab","owner":"stereolabs","description":"ZED SDK interface sample for Matlab","archived":false,"fork":false,"pushed_at":"2024-05-02T08:59:35.000Z","size":2007,"stargazers_count":26,"open_issues_count":2,"forks_count":24,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-05-02T22:05:42.475Z","etag":null,"topics":["matlab","stereo-vision","zed-camera"],"latest_commit_sha":null,"homepage":"https://www.stereolabs.com/docs/matlab/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stereolabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-17T13:51:53.000Z","updated_at":"2024-05-02T08:59:38.000Z","dependencies_parsed_at":"2024-05-02T10:07:55.047Z","dependency_job_id":"0363641b-c93b-41b4-9b08-4d75c0a9227e","html_url":"https://github.com/stereolabs/zed-matlab","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/stereolabs/zed-matlab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stereolabs%2Fzed-matlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stereolabs%2Fzed-matlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stereolabs%2Fzed-matlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stereolabs%2Fzed-matlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stereolabs","download_url":"https://codeload.github.com/stereolabs/zed-matlab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stereolabs%2Fzed-matlab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29704406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"online","status_checked_at":"2026-02-22T02:00:08.193Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["matlab","stereo-vision","zed-camera"],"created_at":"2026-02-22T03:08:56.253Z","updated_at":"2026-02-22T03:08:56.969Z","avatar_url":"https://github.com/stereolabs.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stereolabs ZED - Matlab Integration\n\nThis sample shows how to use the ZED SDK functionalities  within Matlab.\n\n## Getting started\n\n- First, download the latest version of the ZED SDK on [stereolabs.com](https://www.stereolabs.com/developers)\n- For more information, read the ZED [Documentation](https://www.stereolabs.com/docs/) and [API documentation](https://www.stereolabs.com/docs/api/python/) or our [Community page](https://community.stereolabs.com)\n\n### Prerequisites\n\n- Windows 10 64bits or later, Ubuntu 16.04 or higher.\n- Matlab with MEX compiler installed\n- [ZED SDK](https://www.stereolabs.com/developers/release/) and its dependency ([CUDA](https://developer.nvidia.com/cuda-downloads))\n\n\n## Build the program\n\n#### Build for Windows\n\nFor detailed installation instructions, check out our [documentation](https://www.stereolabs.com/docs/matlab#using-the-zed-sdk).\n\n#### Build for Linux\n\nDownload the sample and execute the following command in a terminal:\n\n    export MATLAB_ROOT=/usr/local/MATLAB/R2012b # Put your actual Matlab path here\n    mkdir build\n    cd build\n    cmake ../src\n    make\n    make install\n\n## Run the program\nIn the Matlab directory, open the file `ZED_DepthSensing.m` with Matlab and press run. Press any key to exit the program.\n\n## Features\n\nThis sample is split into 6 scripts, each of them shows a specific feature of the ZED SDK in Matlab.\n\n1. `ZED_DepthSensing.m` :\n\n\tIn this part, we first initialize the ZED Camera and then retrieve both stereo images (Left and Right) as well as the depth data (32-bits float buffer) and the depth image normalized to 8-bits (grayscale). Then, with Matlab, we compute the depth histogram from the depth data values and display it.\n\n\t\u003cimg src=\"ZED_Camera.png\" alt=\"Drawing\" style=\"width: 600px;\"/\u003e\n\t\n2. `ZED_Tracking.m` :\n\n\tThis part shows how to get the positional tracking information. First, we initialize the ZED camera and the tracking, then we display the current left image as well as all the positions of the camera.\n\n\t\u003cimg src=\"ZED_Tracking.png\" alt=\"Drawing\" style=\"width: 600px;\"/\u003e\n\n3. `ZED_PointCloud.m` :\n\n\tThis part shows how to initialize the ZED camera and retrieve for each frame the current point cloud (X,Y,Z) of the scene. Then we use the mesh function of Matlab to display it.\n\n\t\u003cimg src=\"ZED_PointCloud.png\" alt=\"Drawing\" style=\"width: 600px;\"/\u003e\n\n4. `ZED_Recording.m` :\n\n\tThis script shows how to record a video sequence into 'svo' format which can be playback with the ZED SDK.\n\t\n5. `ZED_ObjectDetection.m` :\n\n\tThis script use the ability of the ZED2 to detect objects, a video window shows the results.\n\t\n6. `ZED_CameraControl.m` :\n\n\tThis script shows how to control the video settings of the ZED camera.\n\t\n### Limitations\nThis sample application is not designed to run in real time\n\n\n### Troubleshooting\nOn Linux, If you get the following error :\n\n     /usr/local/MATLAB/R2014a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.21` not found\n\nLaunch matlab with `LD_PRELOAD`:\n\n    LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21:/usr/lib/x86_64-linux-gnu/libfreetype.so.6 matlab\u0026\n\nYou can also create an alias in a bash terminal (just once) to simplify the launch:\n\n    echo \"alias matlab=LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21:/usr/lib/x86_64-linux-gnu/libfreetype.so.6 matlab\u0026\" \u003e\u003e ~/.bashrc\n\nThen just launch the application by typing:\n\n    matlab\n    \n## Support\nIf you need assistance go to our Community site at https://community.stereolabs.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstereolabs%2Fzed-matlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstereolabs%2Fzed-matlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstereolabs%2Fzed-matlab/lists"}