Instalation of findPointsInROI on 2016b MatLab

3 views (last 30 days)
I have the "Computer Vision System Toolbox" installed for a 2016b version of MatLab, but I cannot manage to use several point cloud processing functions (like findPointsInROI or findNearestNeighbours). Is there something else I have to get installed to use these functions?

Answers (1)

Steven Lord
Steven Lord on 25 May 2018
The first input argument to the findPointsInROI function must be a pointCloud object. My guess is that you tried calling it with something else (a numeric array, probably) as the input and that won't work. The example on the documentation page does this, in the first step it creates a pointCloud then in the third section of code it passes that pointCloud into findPointsInROI.
The findNearestNeighbors behaves the same way. You must call it with a pointCloud as input.
Generally the description of an input argument in the Input Arguments section on a function's documentation page will say what those arguments are allowed to be.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!