Skip to content

set orb nlevels 1#977

Merged
dehann merged 1 commit intomasterfrom
23Q3/orb/nlevels1
Aug 24, 2023
Merged

set orb nlevels 1#977
dehann merged 1 commit intomasterfrom
23Q3/orb/nlevels1

Conversation

@dehann
Copy link
Copy Markdown
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