类 Features2d
- java.lang.Object
-
- org.opencv.features2d.Features2d
-
public class Features2d extends java.lang.Object
-
-
字段摘要
字段 修饰符和类型 字段 描述 static int
DrawMatchesFlags_DEFAULT
static int
DrawMatchesFlags_DRAW_OVER_OUTIMG
static int
DrawMatchesFlags_DRAW_RICH_KEYPOINTS
static int
DrawMatchesFlags_NOT_DRAW_SINGLE_POINTS
-
构造函数摘要
构造函数 构造函数 描述 Features2d()
-
方法摘要
所有方法 静态方法 具体方法 修饰符和类型 方法 描述 static void
drawKeypoints(Mat image, MatOfKeyPoint keypoints, Mat outImage)
绘制关键点。static void
drawKeypoints(Mat image, MatOfKeyPoint keypoints, Mat outImage, Scalar color)
绘制关键点。static void
drawKeypoints(Mat image, MatOfKeyPoint keypoints, Mat outImage, Scalar color, int flags)
绘制关键点。static void
drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg)
绘制从两幅图像中找到的关键点匹配。static void
drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness)
static void
drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor)
static void
drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor, Scalar singlePointColor)
static void
drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask)
static void
drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask, int flags)
static void
drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor)
绘制从两幅图像中找到的关键点匹配。static void
drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor)
绘制从两幅图像中找到的关键点匹配。static void
drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask)
绘制从两幅图像中找到的关键点匹配。static void
drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask, int flags)
绘制从两幅图像中找到的关键点匹配。static void
drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, java.util.List<MatOfDMatch> matches1to2, Mat outImg)
static void
drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, java.util.List<MatOfDMatch> matches1to2, Mat outImg, Scalar matchColor)
static void
drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, java.util.List<MatOfDMatch> matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor)
static void
drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, java.util.List<MatOfDMatch> matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, java.util.List<MatOfByte> matchesMask)
static void
drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, java.util.List<MatOfDMatch> matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, java.util.List<MatOfByte> matchesMask, int flags)
-
-
-
字段详情
-
DrawMatchesFlags_DEFAULT
public static final int DrawMatchesFlags_DEFAULT
- 另请参见
- 常量字段值
-
DrawMatchesFlags_DRAW_OVER_OUTIMG
public static final int DrawMatchesFlags_DRAW_OVER_OUTIMG
- 另请参见
- 常量字段值
-
DrawMatchesFlags_NOT_DRAW_SINGLE_POINTS
public static final int DrawMatchesFlags_NOT_DRAW_SINGLE_POINTS
- 另请参见
- 常量字段值
-
DrawMatchesFlags_DRAW_RICH_KEYPOINTS
public static final int DrawMatchesFlags_DRAW_RICH_KEYPOINTS
- 另请参见
- 常量字段值
-
-
方法详情
-
drawKeypoints
public static void drawKeypoints(Mat image, MatOfKeyPoint keypoints, Mat outImage, Scalar color, int flags)
绘制关键点。- 参数
image
- 源图像。keypoints
- 源图像的关键点。outImage
- 输出图像。其内容取决于定义在输出图像中绘制内容的标志值。请参见下面的可能的标志位值。color
- 关键点的颜色。flags
- 设置绘图特征的标志。可能的标志位值由DrawMatchesFlags定义。请参见上面drawMatches中的详细信息。**注意:**对于Python API,标志被修改为cv.DRAW_MATCHES_FLAGS_DEFAULT,cv.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS,cv.DRAW_MATCHES_FLAGS_DRAW_OVER_OUTIMG,cv.DRAW_MATCHES_FLAGS_NOT_DRAW_SINGLE_POINTS
-
drawKeypoints
public static void drawKeypoints(Mat image, MatOfKeyPoint keypoints, Mat outImage, Scalar color)
绘制关键点。- 参数
image
- 源图像。keypoints
- 源图像的关键点。outImage
- 输出图像。其内容取决于定义在输出图像中绘制内容的标志值。请参见下面的可能的标志位值。color
- 关键点的颜色。DrawMatchesFlags。请参见上面drawMatches中的详细信息。**注意:**对于Python API,标志被修改为cv.DRAW_MATCHES_FLAGS_DEFAULT,cv.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS,cv.DRAW_MATCHES_FLAGS_DRAW_OVER_OUTIMG,cv.DRAW_MATCHES_FLAGS_NOT_DRAW_SINGLE_POINTS
-
drawKeypoints
public static void drawKeypoints(Mat image, MatOfKeyPoint keypoints, Mat outImage)
绘制关键点。- 参数
image
- 源图像。keypoints
- 源图像的关键点。outImage
- 输出图像。其内容取决于定义在输出图像中绘制内容的标志值。请参见下面的可能的标志位值。DrawMatchesFlags。请参见上面drawMatches中的详细信息。**注意:**对于Python API,标志被修改为cv.DRAW_MATCHES_FLAGS_DEFAULT,cv.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS,cv.DRAW_MATCHES_FLAGS_DRAW_OVER_OUTIMG,cv.DRAW_MATCHES_FLAGS_NOT_DRAW_SINGLE_POINTS
-
drawMatches
public static void drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask, int flags)
绘制从两幅图像中找到的关键点匹配。- 参数
img1
- 第一个源图像。keypoints1
- 第一个源图像的关键点。img2
- 第二个源图像。keypoints2
- 第二个源图像的关键点。matches1to2
- 从第一个图像到第二个图像的匹配,这意味着keypoints1[i]在keypoints2[matches[i]]中有一个对应的点。outImg
- 输出图像。其内容取决于定义在输出图像中绘制内容的标志值。请参见下面的可能的标志位值。matchColor
- 匹配项(线条和连接的关键点)的颜色。如果matchColor==Scalar::all(-1),则颜色会随机生成。singlePointColor
- 单个关键点(圆圈)的颜色,表示关键点没有匹配项。如果singlePointColor == Scalar::all(-1)
,则颜色随机生成。matchesMask
- 掩码,决定绘制哪些匹配项。如果掩码为空,则绘制所有匹配项。flags
- 设置绘制特征的标志。可能的标志位值由 DrawMatchesFlags 定义。此函数在输出图像中绘制两幅图像的关键点匹配。匹配项是用线连接两个关键点(圆圈)。参见 cv::DrawMatchesFlags。
-
drawMatches
public static void drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask)
绘制从两幅图像中找到的关键点匹配。- 参数
img1
- 第一个源图像。keypoints1
- 第一个源图像的关键点。img2
- 第二个源图像。keypoints2
- 第二个源图像的关键点。matches1to2
- 从第一个图像到第二个图像的匹配,这意味着keypoints1[i]在keypoints2[matches[i]]中有一个对应的点。outImg
- 输出图像。其内容取决于定义在输出图像中绘制内容的标志值。请参见下面的可能的标志位值。matchColor
- 匹配项(线条和连接的关键点)的颜色。如果matchColor==Scalar::all(-1),则颜色会随机生成。singlePointColor
- 单个关键点(圆圈)的颜色,表示关键点没有匹配项。如果singlePointColor == Scalar::all(-1)
,则颜色随机生成。matchesMask
- 掩码,决定绘制哪些匹配项。如果掩码为空,则绘制所有匹配项。参见 cv::DrawMatchesFlags。此函数在输出图像中绘制两幅图像的关键点匹配。匹配项是用线连接两个关键点(圆圈)。参见 cv::DrawMatchesFlags。
-
drawMatches
public static void drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor)
绘制从两幅图像中找到的关键点匹配。- 参数
img1
- 第一个源图像。keypoints1
- 第一个源图像的关键点。img2
- 第二个源图像。keypoints2
- 第二个源图像的关键点。matches1to2
- 从第一个图像到第二个图像的匹配,这意味着keypoints1[i]在keypoints2[matches[i]]中有一个对应的点。outImg
- 输出图像。其内容取决于定义在输出图像中绘制内容的标志值。请参见下面的可能的标志位值。matchColor
- 匹配项(线条和连接的关键点)的颜色。如果matchColor==Scalar::all(-1),则颜色会随机生成。singlePointColor
- 单个关键点(圆圈)的颜色,表示关键点没有匹配项。如果singlePointColor == Scalar::all(-1)
,则颜色随机生成。参见 cv::DrawMatchesFlags。此函数在输出图像中绘制两幅图像的关键点匹配。匹配项是用线连接两个关键点(圆圈)。参见 cv::DrawMatchesFlags。
-
drawMatches
public static void drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor)
绘制从两幅图像中找到的关键点匹配。- 参数
img1
- 第一个源图像。keypoints1
- 第一个源图像的关键点。img2
- 第二个源图像。keypoints2
- 第二个源图像的关键点。matches1to2
- 从第一个图像到第二个图像的匹配,这意味着keypoints1[i]在keypoints2[matches[i]]中有一个对应的点。outImg
- 输出图像。其内容取决于定义在输出图像中绘制内容的标志值。请参见下面的可能的标志位值。matchColor
- 匹配项(线和连接的关键点)的颜色。如果matchColor == Scalar::all(-1)
,则颜色随机生成。如果singlePointColor == Scalar::all(-1)
,则颜色随机生成。参见 cv::DrawMatchesFlags。此函数在输出图像中绘制两幅图像的关键点匹配。匹配项是用线连接两个关键点(圆圈)。参见 cv::DrawMatchesFlags。
-
drawMatches
public static void drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg)
绘制从两幅图像中找到的关键点匹配。- 参数
img1
- 第一个源图像。keypoints1
- 第一个源图像的关键点。img2
- 第二个源图像。keypoints2
- 第二个源图像的关键点。matches1to2
- 从第一个图像到第二个图像的匹配,这意味着keypoints1[i]在keypoints2[matches[i]]中有一个对应的点。outImg
- 输出图像。其内容取决于定义在输出图像中绘制什么的标志值。参见下面的可能的标志位值。如果singlePointColor == Scalar::all(-1)
,则颜色随机生成。参见 cv::DrawMatchesFlags。此函数在输出图像中绘制两幅图像的关键点匹配。匹配项是用线连接两个关键点(圆圈)。参见 cv::DrawMatchesFlags。
-
drawMatches
public static void drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask, int flags)
-
drawMatches
public static void drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask)
-
drawMatches
public static void drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor, Scalar singlePointColor)
-
drawMatches
public static void drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor)
-
drawMatches
public static void drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness)
-
drawMatchesKnn
public static void drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, java.util.List<MatOfDMatch> matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, java.util.List<MatOfByte> matchesMask, int flags)
-
drawMatchesKnn
public static void drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, java.util.List<MatOfDMatch> matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, java.util.List<MatOfByte> matchesMask)
-
drawMatchesKnn
public static void drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, java.util.List<MatOfDMatch> matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor)
-
drawMatchesKnn
public static void drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, java.util.List<MatOfDMatch> matches1to2, Mat outImg, Scalar matchColor)
-
drawMatchesKnn
public static void drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, java.util.List<MatOfDMatch> matches1to2, Mat outImg)
-
-