MCPcopy Create free account
hub / github.com/davisking/dlib / init

Method init

dlib/image_processing/object_detector.h:44–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 typedef typename image_scanner_type::feature_vector_type feature_vector_type;
43
44 void init (
45 const image_scanner_type&
46 )
47 /*!
48 requires
49 - w has already been assigned its value. Note that the point of this
50 function is to allow an image scanner to overload the
51 processed_weight_vector template and provide some different kind of
52 object as the output of get_detect_argument(). For example, the
53 scan_fhog_pyramid object uses an overload that causes
54 get_detect_argument() to return the special fhog_filterbank object
55 instead of a feature_vector_type. This avoids needing to construct the
56 fhog_filterbank during each call to detect and therefore speeds up
57 detection.
58 !*/
59 {}
60
61 // return the first argument to image_scanner_type::detect()
62 const feature_vector_type& get_detect_argument() const { return w; }

Callers 2

deserializeFunction · 0.45
object_detectorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected