EClassificationDataset::Export

Exports the dataset and its images to the given directory. - A new EClassificationDataset object with relative paths to the images is saved into the given directory.
- The exported images will be placed in a sub directory named "Images".
By default, the images will be saved under the filename "Image_[id].[ext]" where [id] is the index of the image in the dataset and [ext] is the image extension. If fileType is set to EImageFileType_Auto, [ext] will be the same as the original image. Otherwise, [ext] will be deduced from the specified file type. If keepFilename is set to true, the images will keep their original filename (except for their extensions). In two images have the same filename, an index will be automatically added to avoid nay conflict. A width, height, and number of channels can be optionally specified to reformat all the images in the dataset. Note that, in this case, only the ROI of the image will be exported.

Namespace: Euresys::Open_eVision::EasyDeepLearning

[C++]

void Export(
   const std::string& directory,
   Euresys::Open_eVision::EImageFileType fileType,
   int quality
)

void Export(
   const std::string& directory,
   bool keepFilename,
   Euresys::Open_eVision::EImageFileType fileType,
   int quality
)

void Export(
   const std::string& directory,
   int width,
   int height,
   int channels,
   Euresys::Open_eVision::EImageFileType fileType,
   int quality
)

void Export(
   const std::string& directory,
   int width,
   int height,
   int channels,
   bool keepFilenames,
   Euresys::Open_eVision::EImageFileType fileType,
   int quality
)

Parameters

directory

A string containing the full path to the directory.

fileType

File type for the exported file. If EImageFileType_Auto, the same file type as the original image is used.

quality

Quality or compression parameters for EBaseROI::SavePng, EBaseROI::SaveJpeg, or EBaseROI::SaveJpeg2K. A value of -1 means the default value.

keepFilename

Keep the original filename of the images

width

Width of the image.

height

Height of the image.

channels

Number of channels of the image (only 1 and 3 are valid, for grayscale and RGB respectively).

keepFilenames

-

EClassificationDataset.Export

Exports the dataset and its images to the given directory. - A new EClassificationDataset object with relative paths to the images is saved into the given directory.
- The exported images will be placed in a sub directory named "Images".
By default, the images will be saved under the filename "Image_[id].[ext]" where [id] is the index of the image in the dataset and [ext] is the image extension. If fileType is set to EImageFileType_Auto, [ext] will be the same as the original image. Otherwise, [ext] will be deduced from the specified file type. If keepFilename is set to true, the images will keep their original filename (except for their extensions). In two images have the same filename, an index will be automatically added to avoid nay conflict. A width, height, and number of channels can be optionally specified to reformat all the images in the dataset. Note that, in this case, only the ROI of the image will be exported.

Namespace: Euresys.Open_eVision.EasyDeepLearning

[C#]

void Export(
   string directory,
   Euresys.Open_eVision.EImageFileType fileType,
   int quality
)

void Export(
   string directory,
   bool keepFilename,
   Euresys.Open_eVision.EImageFileType fileType,
   int quality
)

void Export(
   string directory,
   int width,
   int height,
   int channels,
   Euresys.Open_eVision.EImageFileType fileType,
   int quality
)

void Export(
   string directory,
   int width,
   int height,
   int channels,
   bool keepFilenames,
   Euresys.Open_eVision.EImageFileType fileType,
   int quality
)

Parameters

directory

A string containing the full path to the directory.

fileType

File type for the exported file. If EImageFileType_Auto, the same file type as the original image is used.

quality

Quality or compression parameters for EBaseROI::SavePng, EBaseROI::SaveJpeg, or EBaseROI::SaveJpeg2K. A value of -1 means the default value.

keepFilename

Keep the original filename of the images

width

Width of the image.

height

Height of the image.

channels

Number of channels of the image (only 1 and 3 are valid, for grayscale and RGB respectively).

keepFilenames

-