This interface represents a sample instance, which usually contains an image and an optional region object. More...
Public Member Functions | |
void | Set (ILImage *img, ILRegion *sampleRegion) |
Public Member Functions inherited from ILObject | |
ILObject * | Copy () |
LPVErrorCode | Load (LString filename) |
void | Reset () |
LPVErrorCode | Save (LString filename) |
BOOL | Valid () |
Properties | |
LString | FolderPath [get] |
The folder path of the sample. It's assigned when the sample is loaded in the database or from a specified file path, for the new created standalone sample, it's empty. | |
LString | FullPath [get] |
The full path of the sample, which is the composition of FolderPath and Name. | |
ILImage | Image [get] |
The image attached to the sample. | |
LString | Name [get] |
The unique name of the sample, which is the formatted timestamp and also used as the serialized file name. | |
ILRegion | Region [get] |
The region attached to the sample, could be null. | |
This interface represents a sample instance, which usually contains an image and an optional region object.
The samples are usually organized and managed in the sample database LSampleDatabase. To use this interface, you should create a LSample object or fetch it from the database.
Create the sample with the specified image and region. If any region is passed in, the attached image is reduced to the region size. If the region is empty, then the whole image is added as the sample.
[in] | img | The input image |
[in] | sampleRegion | The input region, could be null. |