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

Function extract_fhog_features

dlib/image_transforms/fhog.h:1083–1097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers 9

cluster_datasetFunction · 0.85
test_fhog_interlacedMethod · 0.85
test_fhog_planarMethod · 0.85
test_on_smallMethod · 0.85
operator()Method · 0.85
make_scale_spaceMethod · 0.85
make_chipMethod · 0.85
operator()Method · 0.85
mainFunction · 0.85

Calls 8

set_rowmFunction · 0.85
reshape_to_column_vectorFunction · 0.85
rangeFunction · 0.50
matFunction · 0.50
sizeMethod · 0.45
resizeMethod · 0.45
set_sizeMethod · 0.45

Tested by 3

test_fhog_interlacedMethod · 0.68
test_fhog_planarMethod · 0.68
test_on_smallMethod · 0.68