|
libeblearngui
|
The display class of class detector. More...
#include <detector_gui.h>
Public Member Functions | |
| detector_gui (uint draw_extracted=0, bool show_detqueue=false, uint step=1, uint qheight=5, uint qwidth=5, bool show_detqueue2=false, uint step2=1, uint qheight2=5, uint qwidth2=5, bool show_class=true, bool show_conf=true) | |
| virtual | ~detector_gui () |
| Destructor. | |
| template<typename Tin > | |
| bboxes & | display (detector< T, Tstate > &cl, idx< Tin > &img, double threshold, const char *frame_name=NULL, uint h0=0, uint w0=0, double dzoom=1.0, T vmin=0, T vmax=0, int wid=-1, const char *wname=NULL, float transparency=1.0) |
| template<typename Tin > | |
| void | display_groundtruth (detector< T, Tstate > &cl, idx< Tin > &img, bboxes &groundtruth, bboxes &filtered, bboxes &nonfiltered, bboxes &pos, bboxes &neg, svector< midx< T > > &pp_pos, svector< midx< T > > &pp_neg, uint h0=0, uint w0=0, double dzoom=1.0, T vmin=0, T vmax=0, int wid=-1) |
| template<typename Tin > | |
| bboxes & | display_input (detector< T, Tstate > &cl, idx< Tin > &img, double threshold, const char *frame_name=NULL, uint h0=0, uint w0=0, double dzoom=1.0, T vmin=0, T vmax=0, int wid=-1, const char *wname=NULL, float transparency=1.0) |
| void | display_preprocessed (svector< midx< T > > &pp, bboxes &bbs, vector< string > &labels, uint &h0, uint &w0, double dzoom=1.0, T vmin=0, T vmax=0, uint wmax=3000) |
| template<typename Tin > | |
| bboxes & | display_inputs_outputs (detector< T, Tstate > &cl, idx< Tin > &img, double threshold, const char *frame_name=NULL, uint h0=0, uint w0=0, double dzoom=1.0, T vmin=0, T vmax=0, int wid=-1, const char *wname=NULL, T in_vmin=0, T in_vmax=255, float transparency=1.0, uint wmax=3000) |
| void | display_inputs (detector< T, Tstate > &cl, uint &h0, uint &w0, bboxes &bb, double dzoom=1.0, T vmin=0, T vmax=0, float transparency=1.0) |
| void | display_outputs (detector< T, Tstate > &cl, uint &h0, uint &w0, bboxes &bb, double dzoom=1.0, T vmin=0, T vmax=0, float transparency=1.0) |
| template<typename Tin > | |
| bboxes & | display_all (detector< T, Tstate > &cl, idx< Tin > &img, double threshold, const char *frame_name=NULL, uint h0=0, uint w0=0, double dzoom=1.0, T vmin=0, T vmax=0, int wid=-1, const char *wname=NULL) |
| template<typename Tin > | |
| void | display_current (detector< T, Tstate > &cl, idx< Tin > &sample, int wid=-1, const char *wname=NULL, double dzoom=1.0) |
| void | set_mask_class (const char *name, T threshold) |
Static Public Member Functions | |
| template<typename Tin > | |
| static void | display_minimal (idx< Tin > &img, bboxes &vb, vector< string > &labels, uint &h0, uint &w0, double dzoom=1.0, T vmin=0, T vmax=0, int wid=-1, bool show_parts=false, float transparency=1.0, bool show_class=true, bool show_conf=true, bboxes *bb2=NULL) |
The display class of class detector.
| ebl::detector_gui< T, Tstate >::detector_gui | ( | uint | draw_extracted = 0, |
| bool | show_detqueue = false, |
||
| uint | step = 1, |
||
| uint | qheight = 5, |
||
| uint | qwidth = 5, |
||
| bool | show_detqueue2 = false, |
||
| uint | step2 = 1, |
||
| uint | qheight2 = 5, |
||
| uint | qwidth2 = 5, |
||
| bool | show_class = true, |
||
| bool | show_conf = true |
||
| ) |
Constructor.
| show_detqueue | If true, show the queue of the latest detected windows with step 'step'. |
| step | Step for show_detqueue. |
| qheight | Number of rows to show for show_detqueue. |
| qwidth | Number of cols to show for show_detqueue. |
| show_detqueue2 | If true, show another queue of the latest detected windows with step 'step2'. |
| step2 | Step for show_detqueue2. |
| qheight2 | Number of rows to show for show_detqueue2. |
| qwidth2 | Number of cols to show for show_detqueue2. |
| draw_extracted | 0: do not draw, 1: draw preprocessed, 2: draw original image extractions |
| bboxes & ebl::detector_gui< T, Tstate >::display | ( | detector< T, Tstate > & | cl, |
| idx< Tin > & | img, | ||
| double | threshold, | ||
| const char * | frame_name = NULL, |
||
| uint | h0 = 0, |
||
| uint | w0 = 0, |
||
| double | dzoom = 1.0, |
||
| T | vmin = 0, |
||
| T | vmax = 0, |
||
| int | wid = -1, |
||
| const char * | wname = NULL, |
||
| float | transparency = 1.0 |
||
| ) |
displays only the output of the classifier after a a call to detector::fprop(img, zoom, threshold, objsize) at coordinates (h0, w0), with zoom <dzoom>. If a window id <wid> is specified, use that window, otherwise create a new window and reuse it. <wname> is an optional window title.
| bboxes & ebl::detector_gui< T, Tstate >::display_all | ( | detector< T, Tstate > & | cl, |
| idx< Tin > & | img, | ||
| double | threshold, | ||
| const char * | frame_name = NULL, |
||
| uint | h0 = 0, |
||
| uint | w0 = 0, |
||
| double | dzoom = 1.0, |
||
| T | vmin = 0, |
||
| T | vmax = 0, |
||
| int | wid = -1, |
||
| const char * | wname = NULL |
||
| ) |
display all, display_inputs_outputs and the internal states of the fprop on the first scale, corresponding to a call to detector::fprop(img, zoom, threshold, objsize) at coordinates (h0, w0), with zoom <dzoom>. If a window id <wid> is specified, use that window, otherwise create a new window and reuse it. <wname> is an optional window title.
| void ebl::detector_gui< T, Tstate >::display_current | ( | detector< T, Tstate > & | cl, |
| idx< Tin > & | sample, | ||
| int | wid = -1, |
||
| const char * | wname = NULL, |
||
| double | dzoom = 1.0 |
||
| ) |
displays all the current state of the classifier. If a window id <wid> is specified, use that window, otherwise create a new window and reuse it. <wname> is an optional window title.
| bboxes & ebl::detector_gui< T, Tstate >::display_input | ( | detector< T, Tstate > & | cl, |
| idx< Tin > & | img, | ||
| double | threshold, | ||
| const char * | frame_name = NULL, |
||
| uint | h0 = 0, |
||
| uint | w0 = 0, |
||
| double | dzoom = 1.0, |
||
| T | vmin = 0, |
||
| T | vmax = 0, |
||
| int | wid = -1, |
||
| const char * | wname = NULL, |
||
| float | transparency = 1.0 |
||
| ) |
displays only the output of the classifier after a a call to detector::fprop(img, zoom, threshold, objsize) at coordinates (h0, w0), with zoom <dzoom>. If a window id <wid> is specified, use that window, otherwise create a new window and reuse it. <wname> is an optional window title.
| bboxes & ebl::detector_gui< T, Tstate >::display_inputs_outputs | ( | detector< T, Tstate > & | cl, |
| idx< Tin > & | img, | ||
| double | threshold, | ||
| const char * | frame_name = NULL, |
||
| uint | h0 = 0, |
||
| uint | w0 = 0, |
||
| double | dzoom = 1.0, |
||
| T | vmin = 0, |
||
| T | vmax = 0, |
||
| int | wid = -1, |
||
| const char * | wname = NULL, |
||
| T | in_vmin = 0, |
||
| T | in_vmax = 255, |
||
| float | transparency = 1.0, |
||
| uint | wmax = 3000 |
||
| ) |
display the regular input/output display but also the inputs and outputs corresponding to each scale, corresponding to a call to detector::fprop(img, zoom, threshold, objsize) at coordinates (h0, w0), with zoom <dzoom>. If a window id <wid> is specified, use that window, otherwise create a new window and reuse it. <wname> is an optional window title.
| void ebl::detector_gui< T, Tstate >::display_minimal | ( | idx< Tin > & | img, |
| bboxes & | vb, | ||
| vector< string > & | labels, | ||
| uint & | h0, | ||
| uint & | w0, | ||
| double | dzoom = 1.0, |
||
| T | vmin = 0, |
||
| T | vmax = 0, |
||
| int | wid = -1, |
||
| bool | show_parts = false, |
||
| float | transparency = 1.0, |
||
| bool | show_class = true, |
||
| bool | show_conf = true, |
||
| bboxes * | bb2 = NULL |
||
| ) | [static] |
displays only the output of the classifier after a a call to detector::fprop(img, zoom, threshold, objsize) at coordinates (h0, w0), with zoom <dzoom>. If a window id <wid> is specified, use that window, otherwise create a new window and reuse it. <wname> is an optional window title.