![]() |
OpenCV 4.10.0
开源计算机视觉
|
枚举类型 | |
| 枚举 | cv::cuda::MomentsOrder { cv::cuda::FIRST_ORDER_MOMENTS = 1 , cv::cuda::SECOND_ORDER_MOMENTS = 2 , cv::cuda::THIRD_ORDER_MOMENTS = 3 } |
| 图像矩的顺序。 更多... | |
函数 | |
| Moments | cv::cuda::convertSpatialMoments (Mat spatialMoments, const MomentsOrder order, const int momentsType) |
| 将 cuda::spatialMoments 返回的空间图像矩转换为 cv::Moments。 | |
| Moments | cv::cuda::moments (InputArray src, const bool binaryImage=false, const MomentsOrder order=MomentsOrder::THIRD_ORDER_MOMENTS, const int momentsType=CV_64F) |
| 计算栅格化形状的所有矩(最多 3 阶)。 | |
| int | cv::cuda::numMoments (const MomentsOrder order) |
| 返回不大于最大图像矩阶数的图像矩数量。 | |
| void | cv::cuda::spatialMoments (InputArray src, OutputArray moments, const bool binaryImage=false, const MomentsOrder order=MomentsOrder::THIRD_ORDER_MOMENTS, const int momentsType=CV_64F, Stream &stream=Stream::Null()) |
| 计算栅格化形状的所有空间矩(最多 3 阶)。 | |
#include <opencv2/cudaimgproc.hpp>
图像矩的顺序。
| FIRST_ORDER_MOMENTS | 一阶矩 |
| SECOND_ORDER_MOMENTS | 二阶矩。 |
| THIRD_ORDER_MOMENTS | 三阶矩。 |
| 枚举值 | |
|---|---|
| FIRST_ORDER_MOMENTS | |
| SECOND_ORDER_MOMENTS | |
| THIRD_ORDER_MOMENTS | |
| Moments cv::cuda::convertSpatialMoments | ( | Mat | spatialMoments, |
| const MomentsOrder | order, | ||
| const int | momentsType | ||
| ) |
#include <opencv2/cudaimgproc.hpp>
将 cuda::spatialMoments 返回的空间图像矩转换为 cv::Moments。
| spatialMoments | 从 cuda::spatialMoments 返回的空间矩。 |
| order | 使用 cuda::spatialMoments 计算图像矩时所用的顺序。 |
| momentsType | 使用 cuda::spatialMoments 计算图像矩时所用的精度。 |