-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBackgroundRemovedImageLoader.h
41 lines (34 loc) · 1.34 KB
/
BackgroundRemovedImageLoader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* File: BackgroundRemovedImageLoader.h
* Author: Marc Gershow
*
* Created on November 5, 2010, 3:56 PM
*
* a factory class that loads the proper subclass of background removed image from disk
* if you implement a subclass of background removed image, add its id code and load method to the
* case structure in fromFile
*
* (C) Marc Gershow; licensed under the Creative Commons Attribution Share Alike 3.0 United States License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/us/ or send a letter to
* Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
*
*/
#ifndef BACKGROUNDREMOVEDIMAGELOADER_H
#define BACKGROUNDREMOVEDIMAGELOADER_H
#include "BackgroundRemovedImage.h"
/* BackgroundRemovedImageLoader
*
* a factory class that loads the proper subclass of background removed image from disk
* if you implement a subclass of background removed image, add its id code and load method to the
* case structure in fromFile
*
*/
class BackgroundRemovedImageLoader {
public:
static BackgroundRemovedImage *fromFile(std::ifstream &is, const IplImage *bak);
virtual ~BackgroundRemovedImageLoader();
private:
BackgroundRemovedImageLoader();
BackgroundRemovedImageLoader(const BackgroundRemovedImageLoader& orig);
};
#endif /* BACKGROUNDREMOVEDIMAGELOADER_H */