DocSDK
2.4.1
image.h
Go to the documentation of this file.
1
/* Copyright 2021 ID R&D Inc. All Rights Reserved. */
2
8
#pragma once
9
10
#include <cstdint>
11
#include <string>
12
#include <memory>
13
14
#include "
config.h
"
15
16
namespace
docsdk
{
17
21
struct
DOCSDK_API
Image
{
22
using
Ptr
= std::shared_ptr<Image>;
23
27
enum class
ColorEncoding
{
28
kRGB888,
29
kBGR888
30
};
31
39
static
Ptr
Create(
const
uint8_t* bytes,
size_t
num_bytes);
40
47
static
Ptr
Create(
const
std::string& path);
48
58
static
Ptr
Create(
const
uint8_t* raw_data, uint32_t num_rows, uint32_t num_cols,
ColorEncoding
encoding);
59
60
virtual
~
Image
() noexcept =
default
;
61
};
62
63
}
// namespace docsdk
DOCSDK_API
#define DOCSDK_API
Definition:
config.h:24
docsdk::Image::Ptr
std::shared_ptr< Image > Ptr
Definition:
image.h:22
docsdk::Image::ColorEncoding
ColorEncoding
Image color encoding.
Definition:
image.h:27
config.h
docsdk
Definition:
image.h:16
docsdk::Image
Image representation.
Definition:
image.h:21
sdk
include
docsdk
image.h
Generated by
1.8.13