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

Method is_gray

dlib/image_loader/png_loader.cpp:154–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152// ----------------------------------------------------------------------------------------
153
154 bool png_loader::is_gray() const { return color_type == PNG_COLOR_TYPE_GRAY; }
155 bool png_loader::is_graya() const { return color_type == PNG_COLOR_TYPE_GRAY_ALPHA; }
156 bool png_loader::is_rgb() const { return color_type == PNG_COLOR_TYPE_RGB; }
157 bool png_loader::is_rgba() const { return color_type == PNG_COLOR_TYPE_RGB_ALPHA; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected