EClassificationDataset::AddImage
Adds an image to the dataset.
The image can be specified by its path on the filesystem (parameter imagePath
) or by an Open eVision mage buffer (parameter img
).
By default, an image will have no classification label and no segmentation. The label of the image can be directly specified when adding the image to the dataset. If the given label was not in the classification labels of the dataset, it will be automatically added to them.
If no region of interest and/or mask is specified, the region of interest of the image will be its full extent and its mask will be empty.
The method returns
Namespace: Euresys::Open_eVision::EasyDeepLearning
[C++]
int AddImage(
const std::string& imagePath
)
int AddImage(
const std::string& imagePath,
const std::string& label
)
int AddImage(
const std::string& imagePath,
int originX,
int originY,
int width,
int height,
const ERegion& mask
)
int AddImage(
const std::string& imagePath,
int originX,
int originY,
int width,
int height,
const ERegion& mask,
const std::string& label
)
int AddImage(
const EBaseROI& img
)
int AddImage(
const EBaseROI& img,
const std::string& label
)
int AddImage(
const EBaseROI& img,
int originX,
int originY,
int width,
int height,
const ERegion& mask
)
int AddImage(
const EBaseROI& img,
int originX,
int originY,
int width,
int height,
const ERegion& mask,
const std::string& label
)
Parameters
imagePath
The path to an image
label
The label
originX
Region of interest origin abscissa
originY
Region of interest origin ordinate
width
Region of interest width
height
Region of interest height
mask
The mask for the image (with respect to the region of interest)
img
The image
Remarks
When adding Open eVision images (EBaseROI) to a dataset, the dataset will retain a copy of the image.
When specifying an individual region of interest and/or mask, the dataset will retain a copy of these.
EClassificationDataset.AddImage
Adds an image to the dataset.
The image can be specified by its path on the filesystem (parameter imagePath
) or by an Open eVision mage buffer (parameter img
).
By default, an image will have no classification label and no segmentation. The label of the image can be directly specified when adding the image to the dataset. If the given label was not in the classification labels of the dataset, it will be automatically added to them.
If no region of interest and/or mask is specified, the region of interest of the image will be its full extent and its mask will be empty.
The method returns
Namespace: Euresys.Open_eVision.EasyDeepLearning
[C#]
int AddImage(
string imagePath
)
int AddImage(
string imagePath,
string label
)
int AddImage(
string imagePath,
int originX,
int originY,
int width,
int height,
Euresys.Open_eVision.ERegion mask
)
int AddImage(
string imagePath,
int originX,
int originY,
int width,
int height,
Euresys.Open_eVision.ERegion mask,
string label
)
int AddImage(
Euresys.Open_eVision.EBaseROI img
)
int AddImage(
Euresys.Open_eVision.EBaseROI img,
string label
)
int AddImage(
Euresys.Open_eVision.EBaseROI img,
int originX,
int originY,
int width,
int height,
Euresys.Open_eVision.ERegion mask
)
int AddImage(
Euresys.Open_eVision.EBaseROI img,
int originX,
int originY,
int width,
int height,
Euresys.Open_eVision.ERegion mask,
string label
)
Parameters
imagePath
The path to an image
label
The label
originX
Region of interest origin abscissa
originY
Region of interest origin ordinate
width
Region of interest width
height
Region of interest height
mask
The mask for the image (with respect to the region of interest)
img
The image
Remarks
When adding Open eVision images (EBaseROI) to a dataset, the dataset will retain a copy of the image.
When specifying an individual region of interest and/or mask, the dataset will retain a copy of these.