Mech-Eye API Reference 2.1.4-alpha
API reference documentation for Mech-Eye 3D Laser Profiler
All Classes Functions Variables Enumerations Enumerator Pages
RawImage.h
1#pragma once
2
3#include <memory>
4#include "api_global.h"
5#include "Array2D.h"
6
7namespace mmind {
8namespace eye {
9
10using RawImageData = Array2D<unsigned char>;
11
12class RawImageImpl;
13
18{
19public:
23 MMIND_API_EXPORT RawImage();
24
28 MMIND_API_EXPORT ~RawImage();
29
33 MMIND_API_EXPORT RawImage(const RawImage& image);
34
38 MMIND_API_EXPORT size_t width() const;
39
43 MMIND_API_EXPORT size_t height() const;
44
48 MMIND_API_EXPORT bool isEmpty() const;
49
53 MMIND_API_EXPORT void clear();
54
58 MMIND_API_EXPORT RawImageData getData() const;
59
60private:
61 std::shared_ptr<RawImageImpl> _impl;
62 friend class ProfilerImpl;
63};
64
65} // namespace eye
66} // namespace mmind
Represents a 2D container of data.
Definition Array2D.h:17
Represents a raw image.
Definition RawImage.h:18
MMIND_API_EXPORT RawImage(const RawImage &image)
Copy constructor.
MMIND_API_EXPORT ~RawImage()
Destructor.
MMIND_API_EXPORT bool isEmpty() const
Checks if the RawImage object has no elements.
MMIND_API_EXPORT RawImageData getData() const
Gets the raw image data.
MMIND_API_EXPORT size_t height() const
Returns the height of the RawImage object (number of pixel rows in the raw image).
MMIND_API_EXPORT size_t width() const
Returns the width of the RawImage object (number of pixel columns in the raw image).
MMIND_API_EXPORT void clear()
Clears the data in the RawImage object.
MMIND_API_EXPORT RawImage()
Constructor.