Skip to content

Instantly share code, notes, and snippets.

@krjw
krjw / cvMatData.h
Created October 8, 2018 13:36
Implementation of the IMemoryRegion of the arm compute library to import opencv data
#include <arm_compute/runtime/IMemoryRegion.h>
class cvMatData : public arm_compute::IMemoryRegion
{
public:
cvMatData(std::shared_ptr<uint8_t> memory)
: arm_compute::IMemoryRegion(sizeof(memory))
, _memory(nullptr)
, _memory_owned(std::move(memory))
{