This class does autofocus, by sweeping the sensor back and forth until a nice thing to focus on is found. More...
|AutoFocus (FCam::Lens *l, FCam::Rect r=FCam::Rect())|
|Construct an AutoFocus helper object that uses the specified lens, and attempts to bring the target rectangle into focus. |
|Start the autofocus routine. |
|void||update (const FCam::Frame &f)|
|Feed the autofocus routine a new frame. |
|Is the lens currently focused? |
|Is the lens currently focused, or ready to begin focusing? |
|void||setTarget (Rect r)|
|Set the target on the frame to look at in pixels. |
This class does autofocus, by sweeping the sensor back and forth until a nice thing to focus on is found.
|void FCam::AutoFocus::update||(||const FCam::Frame &||f||)|
Feed the autofocus routine a new frame.
It will have its sharpness map examined, and the autofocus will react appropriately. This function will ignore frames that aren't tagged by the lens this object was constructed with, and will also ignore frames with no sharpnes map.