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

Method setup

dlib/image_keypoint/poly_image.h:73–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 void setup (
74 long order_,
75 long window_size_
76 )
77 {
78 // make sure requires clause is not broken
79 DLIB_ASSERT(1 <= order_ && order_ <= 6 &&
80 window_size_ >= 3 && (window_size_%2) == 1,
81 "\t descriptor_type poly_image::setup()"
82 << "\n\t Invalid arguments were given to this function."
83 << "\n\t order_: " << order_
84 << "\n\t window_size_: " << window_size_
85 << "\n\t this: " << this
86 );
87
88
89 poly_coef.clear();
90 order = order_;
91 window_size = window_size_;
92 border_size = (long)std::ceil(std::floor(window_size/2.0)/downsample);
93 num_rows = 0;
94 num_cols = 0;
95 filters = build_separable_poly_filters(order, window_size);
96 }
97
98 bool uses_normalization (
99 ) const { return normalize; }

Callers

nothing calls this directly

Calls 4

ceilFunction · 0.50
floorFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected