![]() |
Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
|
Namespace containing functions related to GENERAL operations on images or other large binary operations. More...
Functions | |
int | GetSLToOpenCVMatType (const sl::MAT_TYPE slType) |
Provides an easy method of mapping sl::Mat types to cv::Mat types. | |
sl::MAT_TYPE | GetCVToOpenSLMatType (const int cvType) |
Provides an easy method of mapping cv::Mat types to sl::Mat types. | |
cv::Mat | ConvertSLMatToCVMat (sl::Mat &slInputMat) |
Convert a ZEDSDK sl::Mat object into an OpenCV cv::Mat object. This copies the mat from GPU memory to CPU memory. | |
cv::cuda::GpuMat | ConvertSLMatToGPUMat (sl::Mat &slInputMat) |
Convert a ZEDSDK sl::Mat object into an OpenCV cv::cuda::GpuMat object. Keeps all Mat memory in GPU VRAM for faster processing. | |
sl::Mat | ConvertCVMatToSLMat (cv::Mat &cvInputMat) |
Convert an OpenCV cv::Mat object into a ZEDSDK sl::Mat object. This copies the mat from CPU memory to GPU memory. | |
sl::Mat | ConvertGPUMatToSLMat (cv::cuda::GpuMat &cvInputMat) |
Convert an OpenCV cv::Mat object into a ZEDSDK sl::Mat object. This copies the mat from CPU memory to GPU memory. | |
void | SplitPointCloudColors (cv::Mat &cvInputPointCloud, cv::Mat &cvOutputColors) |
Given a cv::Mat containing X, Y, Z, and BGRA values for each pixel in the third dimension, repackage the colors values and store them in a new mat. | |
void | CustomBilateralFilter (cv::Mat &cvInputFrame, ushort usDiameter, double dSigmaColor, double dSigmaSpace) |
Custom implementation of bilateral filter (since openCV is slow) | |
void | ColorReduce (cv::Mat &cvFrame, int nDiv=64) |
Given an image and a divisor, divide the precision of the elements. | |
Namespace containing functions related to GENERAL operations on images or other large binary operations.
|
inline |
Provides an easy method of mapping sl::Mat types to cv::Mat types.
slType | - The data type/layout of the sl mat object. |
|
inline |
Provides an easy method of mapping cv::Mat types to sl::Mat types.
slType | - The data type/layout of the cv mat object. |
|
inline |
Convert a ZEDSDK sl::Mat object into an OpenCV cv::Mat object. This copies the mat from GPU memory to CPU memory.
input | - The ZEDSDK Mat to be converted. |
|
inline |
Convert a ZEDSDK sl::Mat object into an OpenCV cv::cuda::GpuMat object. Keeps all Mat memory in GPU VRAM for faster processing.
slInputMat | - The ZEDSDK Mat to be converted. |
|
inline |
Convert an OpenCV cv::Mat object into a ZEDSDK sl::Mat object. This copies the mat from CPU memory to GPU memory.
input | - The OpenCV Mat to be converted. |
|
inline |
Convert an OpenCV cv::Mat object into a ZEDSDK sl::Mat object. This copies the mat from CPU memory to GPU memory.
input | - The OpenCV GPU Mat to be converted. |
Given a cv::Mat containing X, Y, Z, and BGRA values for each pixel in the third dimension, repackage the colors values and store them in a new mat.
cvInputPointCloud | - The input point cloud containing X, Y, Z, and BGRA values for each pixel. |
cvOutputColors | - The output colored image made from the BGRA values in the point cloud. Third dimension length is 4 (B, G, R, A) |
|
inline |
Custom implementation of bilateral filter (since openCV is slow)
cvInputFrame | - cv::Mat of the image to filter |
usDiameter | - Diameter of kernel for aggregation of pixel values |
dSigmaColor | - Std.Dev for color weights |
dSigmaSpace | - Std.Dev for spatial weights |
|
inline |
Given an image and a divisor, divide the precision of the elements.
cvFrame | - The frame to alter. |
nDiv | - The amount that the precision should be decreased. |