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

Method const_image_view

dlib/image_processing/generic_image.h:377–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375 using pixel_type = pixel_type_t<image_type>;
376
377 const_image_view(
378 const image_type& img
379 ) :
380 _data(reinterpret_cast<const char*>(image_data(img))),
381 _width_step(width_step(img)),
382 _nr(num_rows(img)),
383 _nc(num_columns(img))
384 {}
385
386 long nr() const { return _nr; }
387 long nc() const { return _nc; }

Callers

nothing calls this directly

Calls 4

image_dataFunction · 0.70
width_stepFunction · 0.70
num_rowsFunction · 0.70
num_columnsFunction · 0.70

Tested by

no test coverage detected