List of all members.
Public Member Functions |
| fprop_thread (configuration &conf, mutex *om=NULL, const char *name="", const char *arg2=NULL, bool sync=true, t_chans tc=CHANS_RGB) |
virtual void | execute () |
| Execute the detection thread.
|
virtual bool | set_data (idx< ubyte > &frame, string &frame_name, uint frame_id) |
virtual bool | get_data (idx< ubyte > &frame, string &frame_name, uint &frame_id) |
virtual bool | set_dump (string &frame_fname, string &dump_fname) |
virtual bool | dumped () |
virtual bool | available () |
virtual void | set_output_directory (string &out) |
| Set the directory where to write outputs.
|
Public Attributes |
detector< FPROP_SFUNC(Tnet)> * | pdetect |
| Load image or not.
|
template<typename Tnet>
class ebl::fprop_thread< Tnet >
Constructor & Destructor Documentation
- Parameters:
-
om | A mutex used to synchronize threads outputs/ To synchronize all threads, give the same mutex to each of them. |
sync | If true, synchronize outputs between threads, using om, otherwise use regular unsynced outputs. |
tc | The channels type of the input image, e.g. brightness Y, or color RGB. |
Member Function Documentation
Return true if the thread is available to process a new frame, false otherwise.
Return true if the thread has processed and dump the data. Note: this method will return true only once, after a frame has been processed. Subsequent calls will return false until a new frame is processed again.
template<typename Tnet >
bool ebl::fprop_thread< Tnet >::get_data |
( |
idx< ubyte > & |
frame, |
|
|
string & |
frame_name, |
|
|
uint & |
frame_id |
|
) |
| [virtual] |
Return true if new data was copied from the thread, false otherwise. We get the frame back even though it was set via set_data, because we do not know which frame was actually used. (could use some kind of id, and remember frames to avoid copy). Note: this method will return true only once, after a frame has been processed. Subsequent calls will return false until a new frame is processed again.
template<typename Tnet >
bool ebl::fprop_thread< Tnet >::set_data |
( |
idx< ubyte > & |
frame, |
|
|
string & |
frame_name, |
|
|
uint |
frame_id |
|
) |
| [virtual] |
Return true if new data was copied to the thread, false otherwise, if we could not obtain the mutex lock.
template<typename Tnet >
bool ebl::fprop_thread< Tnet >::set_dump |
( |
string & |
frame_fname, |
|
|
string & |
dump_fname |
|
) |
| [virtual] |
Ask the thread to fprop the file 'frame_fname' and dump the results in 'dump_fname' (which should not contain an extension, it will be added along the matrix sizes).
The documentation for this class was generated from the following files: