MCPcopy Create free account
hub / github.com/arrayfire/forge / Image

Method Image

src/api/cpp/image.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace forge
18{
19Image::Image(const unsigned pWidth, const unsigned pHeight,
20 const ChannelFormat pFormat, const dtype pDataType)
21 : mValue(0)
22{
23 fg_image temp = 0;
24 FG_THROW(fg_create_image(&temp, pWidth, pHeight, pFormat, (fg_dtype)pDataType));
25
26 std::swap(mValue, temp);
27}
28
29Image::Image(const Image& pOther)
30{

Callers

nothing calls this directly

Calls 3

fg_create_imageFunction · 0.85
fg_retain_imageFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected