Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV: how to set the number of octaves in SIFT?

The number of octaves is a crucial parameter in the SIFT algorithm. However, according to SIFT documentation in OpenCV you can set only the number of layers per octave (nOctaveLayers) and not the number of octaves used.

So what is the default number of octaves used by SIFT in OpenCV? And how to change that value?

In addition, it's not clear what is an optimal value for the number of layers per octave. According to this article:

paper gives some empirical data which can be summarized as, number of octaves = 4, number of scale levels = 5

However, the default value given to nOctaveLayers is 3.

OpenCV: how to set the number of octaves in SIFT?

The number of octaves is a crucial parameter in the SIFT algorithm. However, according to SIFT documentation in OpenCV you can set only the number of layers per octave (nOctaveLayers) and not the number of octaves used.

So what is the default number of octaves used by SIFT in OpenCV? And how to change that value?

In addition, it's not clear what is an optimal value for the number of layers per octave. According to this this article:

paper gives some empirical data which can be summarized as, number of octaves = 4, number of scale levels = 5

However, the default value given to nOctaveLayers is 3.