Guest User

Untitled

a guest
Jan 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. cv2.xfeatures2d.SIFT_create([, nfeatures[, nOctaveLayers[, contrastThreshold[, edgeThreshold[, sigma]]]]]) -> retval
  2. | . @param nfeatures The number of best features to retain. The features are ranked by their scores
  3. | . (measured in SIFT algorithm as the local contrast)
  4. | .
  5. | . @param nOctaveLayers The number of layers in each octave. 3 is the value used in D. Lowe paper.
  6. | . The number of octaves is computed automatically from the image resolution.
  7. | .
  8. | . @param contrastThreshold The contrast threshold used to filter out weak features in semi-uniform
  9. | . (low-contrast) regions. The larger the threshold, the less features are produced by the detector.
  10. | .
  11. | . @param edgeThreshold The threshold used to filter out edge-like features. Note that the its meaning
  12. | . is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are
  13. | . filtered out (more features are retained).
  14. | .
  15. | . @param sigma The sigma of the Gaussian applied to the input image at the octave #0. If your image
  16. | . is captured with a weak camera with soft lenses, you might want to reduce the number.
  17. |
  18.  
  19. sift = cv2.xfeatures2d.SIFT_create(nfeatures = 50, nOctaveLayers=3)
Add Comment
Please, Sign In to add comment