Skip to content

python示例代码size参数貌似传错了? #44

@hueidou

Description

@hueidou

python示例代码的这行:

matches_gms = matchGMS(img1.shape[:2], img2.shape[:2], kp1, kp2, matches_all, withScale=False, withRotation=False, thresholdFactor=6)

按照定义,前两个参数是size行列,这里是shape列行。

void cv::xfeatures2d::matchGMS(
  const Size & size1,
  const Size & size2,
  const std::vector< KeyPoint > & keypoints1,
  const std::vector< KeyPoint > & keypoints2,
  const std::vector< DMatch > & matches1to2,
  std::vector< DMatch > & matchesGMS,
  const bool withRotation = false,
  const bool withScale = false,
  const double thresholdFactor = 6.0 
)

对这些数据结构不太熟悉,还请指教确认。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions