EClassificationDataset::AddImages

Adds all the images present in the directory specified by the parameter path and whose filename matches the filter.
By default, all the images will have no classification label and no classification. However, a label can be directly specified for all of the images.
The method returns the number of images added to the dataset.

Namespace: Euresys::Open_eVision::EasyDeepLearning

[C++]

int AddImages(
   const std::string& filter
)

int AddImages(
   const std::string& filter,
   const std::string& label
)

int AddImages(
   const std::string& filter,
   int originX,
   int originY,
   int width,
   int height,
   const ERegion& mask
)

int AddImages(
   const std::string& filter,
   int originX,
   int originY,
   int width,
   int height,
   const ERegion& mask,
   const std::string& label
)

Parameters

filter

A glob filter

label

A 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 images

Remarks

The filter is a glob pattern. This means the wildcard characters "*" and "?" correspond to "zero or more character" and "a single character" respectively. For example, the filter "*_good_*.png" will match any filename that contains the string "_good_" and has a png extension.

EClassificationDataset.AddImages

Adds all the images present in the directory specified by the parameter path and whose filename matches the filter.
By default, all the images will have no classification label and no classification. However, a label can be directly specified for all of the images.
The method returns the number of images added to the dataset.

Namespace: Euresys.Open_eVision.EasyDeepLearning

[C#]

int AddImages(
   string filter
)

int AddImages(
   string filter,
   string label
)

int AddImages(
   string filter,
   int originX,
   int originY,
   int width,
   int height,
   Euresys.Open_eVision.ERegion mask
)

int AddImages(
   string filter,
   int originX,
   int originY,
   int width,
   int height,
   Euresys.Open_eVision.ERegion mask,
   string label
)

Parameters

filter

A glob filter

label

A 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 images

Remarks

The filter is a glob pattern. This means the wildcard characters "*" and "?" correspond to "zero or more character" and "a single character" respectively. For example, the filter "*_good_*.png" will match any filename that contains the string "_good_" and has a png extension.