MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / init_image

Method init_image

utils/ImageLoader.h:158–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 */
157 template <typename T>
158 void init_image(T &image, Format format)
159 {
160 ARM_COMPUTE_ERROR_ON(!is_open());
161 ARM_COMPUTE_ERROR_ON(format != Format::RGB888 && format != Format::U8);
162
163 // Use the size of the input image
164 TensorInfo image_info(_width, _height, format);
165 image.allocator()->init(image_info);
166 }
167 /** Fill an image with the content of the currently open image file.
168 *
169 * @note If the image is a CLImage, the function maps and unmaps the image

Callers 1

do_setupMethod · 0.80

Calls 2

initMethod · 0.45
allocatorMethod · 0.45

Tested by

no test coverage detected