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

Method get_block_rect

dlib/test/object_detector.cpp:190–190  ·  view source on GitHub ↗

This block of functions is meant to provide a way to map between the row/col space taken by this object's operator() function and the images supplied to load(). In this example it's trivial. However, in general, you might create feature extractors which don't perform extraction at every possible image location (e.g. the hog_image) and thus result in some more complex mapping.

Source from the content-addressed store, hash-verified

188 // However, in general, you might create feature extractors which don't perform extraction at every
189 // possible image location (e.g. the hog_image) and thus result in some more complex mapping.
190 inline const rectangle get_block_rect ( long row, long col) const { return centered_rect(col,row,3,3); }
191 inline const point image_to_feat_space ( const point& p) const { return p; }
192 inline const rectangle image_to_feat_space ( const rectangle& rect) const { return rect; }
193 inline const point feat_to_image_space ( const point& p) const { return p; }

Callers 1

perform_testMethod · 0.45

Calls 1

centered_rectFunction · 0.85

Tested by

no test coverage detected