CCIMXDesktop
 
Loading...
Searching...
No Matches
CVImageImpl.h
1#ifndef CVIMAGEIMPL_H
2#define CVIMAGEIMPL_H
3/* class interfaces */
4
9class CVImageImpl {
10public:
15 virtual void load_from_file(const char* filename) = 0;
16
22 virtual void assigned(const CVImageImpl* impl, bool req_copy) = 0;
23
29 virtual void pass_copy(const CVImageImpl* copied) = 0;
30 virtual ~CVImageImpl() = default;
31
36 virtual bool image_valid() = 0;
37};
38
40public:
48};
49
50#endif // CVIMAGEIMPL_H
Definition CVImageImpl.h:39
static CVImageImpl * target_impl()
target_impl fetch the IMPL according platform/backend framework
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
virtual void load_from_file(const char *filename)=0
load the image from file
virtual void assigned(const CVImageImpl *impl, bool req_copy)=0
assigned the image to this image
virtual void pass_copy(const CVImageImpl *copied)=0
pass_copy makes a passing assigned, for OpenCV like it just increase the ref count