| 1081 | typename mm2 |
| 1082 | > |
| 1083 | void extract_fhog_features( |
| 1084 | const image_type& img, |
| 1085 | dlib::array<array2d<T,mm1>,mm2>& hog, |
| 1086 | int cell_size = 8, |
| 1087 | int filter_rows_padding = 1, |
| 1088 | int filter_cols_padding = 1 |
| 1089 | ) |
| 1090 | { |
| 1091 | impl_fhog::impl_extract_fhog_features(img, hog, cell_size, filter_rows_padding, filter_cols_padding); |
| 1092 | // If the image is too small then the above function outputs an empty feature map. |
| 1093 | // But to make things very uniform in usage we require the output to still have the |
| 1094 | // 31 planes (but they are just empty). |
| 1095 | if (hog.size() == 0) |
| 1096 | hog.resize(31); |
| 1097 | } |
| 1098 | |
| 1099 | template < |
| 1100 | typename image_type, |