mw::mo::mocam::autofocus::Handle::Get
Member FunctionErrorCodes Get( f32 dampingFactor, f32& focus );
Name | Description | |
---|---|---|
in | dampingFactor | damping factor used to interpolate internal autofocus value (see below). |
out | focus | Output interpolated autofocus value between 0 and maxParallax (see Calculate). |
This function interpolate internal autofocus value calculated by Calculate.
You will typically call it for every frame while the internal autofocus calculation will be done once in a while.
Calculate calculates a new autofocus value for each frame pair, independently of the previous images.
Keeping this value "as is" would create a rather "erratic" and "jumping" behavior of the autofocus.
To make it smoother, we use a classic damping formula :
CONFIDENTIAL