FCam::AutoFocus Class Reference

This class does autofocus, by sweeping the sensor back and forth until a nice thing to focus on is found. More...

#include <AutoFocus.h>

Collaboration diagram for FCam::AutoFocus:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AutoFocus (FCam::Lens *l)
 Construct an AutoFocus helper object that uses the specified lens.
void startSweep ()
 Start the autofocus routine.
void update (FCam::Frame::Ptr f)
 Feed the autofocus routine a new frame.
bool focused ()
 Is the lens currently focused?
bool idle ()
 Is the lens current focused, or ready to begin focusing?


Detailed Description

This class does autofocus, by sweeping the sensor back and forth until a nice thing to focus on is found.

You call startSweep, then feed it frames using update, until focused returns true.

Definition at line 18 of file AutoFocus.h.


Constructor & Destructor Documentation

FCam::AutoFocus::AutoFocus ( FCam::Lens l  ) 

Construct an AutoFocus helper object that uses the specified lens.

Definition at line 7 of file AutoFocus.cpp.


Member Function Documentation

void FCam::AutoFocus::startSweep (  ) 

Start the autofocus routine.

Returns immediately.

Definition at line 9 of file AutoFocus.cpp.

void FCam::AutoFocus::update ( FCam::Frame::Ptr  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.

Definition at line 18 of file AutoFocus.cpp.


The documentation for this class was generated from the following files:

Generated on Mon Jan 18 20:48:13 2010 for FCam by  doxygen 1.5.6