- Extract individual variables from the "stereoParams" object in MATLAB.
- Create a MATLAB Function block in Simulink, where you will implement your custom script. Define input and output ports for the block, including camera parameters, rotation, translation, video frames, and your results.
- Modify your custom script to work with the input and output ports you defined in the MATLAB Function block, replacing the "stereoParams" object with the extracted variables.
- Connect the appropriate inputs and outputs to the MATLAB Function block in your Simulink model and run the simulation.
How to use the calibrated stereo camera calibration Object "stereoParams" in simulink.
3 views (last 30 days)
Show older comments
Hi have a stereo camera calibration file that I have developed by recording a simulation from simulink, then used screen shots from the video in the stereo calibrator app. I am then passing recorded video from the simulation through a script I have written for object detection then depth estimation which I have proven works fine.
I now want to use the script within the simulink simulation enviroment to use it for vehicle navigation, it appears simulink does not accept the "stereoParams" object when referencing it from a MATLAB Function block. I have ensured all variables are part of the model workspace.
Anyone know how to use the stereo camera paramters within Simulink and more specifically use my custom object detection and depth estimation script on the live simulation?
0 Comments
Answers (1)
Himanshu
on 28 Apr 2023
Hello,
I understand that you want to use stereo camera parameters and your custom object detection and depth estimation script within the Simulink environment.
You can follow the below steps:
You can refer to the below documentation to understand more about "stereoParameters" object and "S-Function" in MATLAB.
0 Comments
See Also
Categories
Find more on Computer Vision with Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!