CCIMXDesktop
 
Loading...
Searching...
No Matches
CVImage.h
1#ifndef CVIMAGE_H
2#define CVIMAGE_H
3#include "CVImageImpl.h"
4
9class CVImage {
10public:
11 CVImage();
12 CVImage(const CVImage& image);
13 const CVImage& operator=(const CVImage& image);
14 ~CVImage();
15
16 /* load as file */
17
22 void loadFile(const char* filename);
23
29 void assigned(
30 const CVImage& image, /* other copy */
31 bool load_as_copy = false /* req to copy */
32 );
33
37 inline bool image_valid() const { return private_handle->image_valid(); }
38
43 inline CVImageImpl* impl_ptr() const { return private_handle; }
44
45private:
46 CVImageImpl* private_handle { nullptr };
47};
48
49#endif // CVIMAGE_H
The CVImageImpl class is the image interface classes, or, backend of the CVImage.
Definition CVImageImpl.h:9
virtual bool image_valid()=0
image_valid check if the image is valid
The CVImage class is the image class that provides the image in the frameworks.
Definition CVImage.h:9
~CVImage()
destructor
Definition CVImage.cpp:25
bool image_valid() const
assigned assigns the image to this image
Definition CVImage.h:37
void loadFile(const char *filename)
loadFile loads the file into the image
Definition CVImage.cpp:29
void assigned(const CVImage &image, bool load_as_copy=false)
assigned assigns the image to this image
Definition CVImage.cpp:33
CVImageImpl * impl_ptr() const
impl_ptr get the impl pointer
Definition CVImage.h:43
const CVImage & operator=(const CVImage &image)
copy assignment
Definition CVImage.cpp:15
CVImage()
defines the default constructor
Definition CVImage.cpp:4