Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set orb nlevels 1 #977

Merged
merged 1 commit into from
Aug 24, 2023
Merged

set orb nlevels 1 #977

merged 1 commit into from
Aug 24, 2023

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
0 of 5 checks passed
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