| 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; } |
no outgoing calls
no test coverage detected