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

Function init_hog_zero_everything

dlib/image_transforms/fhog.h:417–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415
416 template <typename T, typename mm1, typename mm2>
417 void init_hog_zero_everything (
418 dlib::array<array2d<T,mm1>,mm2>& hog,
419 int hog_nr,
420 int hog_nc,
421 int filter_rows_padding,
422 int filter_cols_padding
423 )
424 {
425 const int num_hog_bands = 27+4;
426 hog.resize(num_hog_bands);
427 for (int i = 0; i < num_hog_bands; ++i)
428 {
429 hog[i].set_size(hog_nr+filter_rows_padding-1, hog_nc+filter_cols_padding-1);
430 assign_all_pixels(hog[i], 0);
431 }
432 }
433
434 // ------------------------------------------------------------------------------------
435

Calls 6

assign_all_pixelsFunction · 0.85
set_all_elementsFunction · 0.85
resizeMethod · 0.45
set_sizeMethod · 0.45
nrMethod · 0.45
ncMethod · 0.45

Tested by

no test coverage detected