Skip to content

Conversation

dehann
Copy link
Member

@dehann dehann commented Aug 24, 2023

function makeORBParams(
    feature_params,
    nfeatures = 100,
    nlevels = 1,
    fastThreshold = 20,
    edgeThreshold = 31,
    firstLevel = 0,
    patchSize = 31,
    WTA_K = 2,
    scaleFactor = 1.1,
    scoreType = 0,
)

  orb = cv.ORB_create(
    nlevels = nlevels,
    fastThreshold = fastThreshold,
    edgeThreshold = edgeThreshold,
    firstLevel = firstLevel,
    patchSize = patchSize,
    WTA_K = WTA_K,
    nfeatures = nfeatures,
    scaleFactor = scaleFactor,
    scoreType = scoreType,
  )
  orb.setMaxFeatures(feature_params.maxCorners)
  orb.setPatchSize(feature_params.blockSize)

  return orb
end

@dehann dehann added this to the v0.15.1 milestone Aug 24, 2023
@dehann dehann merged commit 9e851f0 into master Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant