eVision.EasyDeepLearning.EClassificationDataset manages a dataset of images. More...


Public Member Functions | |
| None | __init__ (self) |
| Constructs a eVision.EasyDeepLearning.EClassificationDataset object. | |
| None | __init__ (self, eVision.EasyDeepLearning.EClassificationDataset other) |
| Copy constructor of a eVision.EasyDeepLearning.EClassificationDataset object. | |
| None | __init__ (self, eVision.EasyDeepLearning.EDataset other) |
| Copy constructor of a eVision.EasyDeepLearning.EClassificationDataset object from a eVision.EasyDeepLearning.EDataset object. | |
| None | Clear (self) |
| Clears the dataset. | |
| eVision.EBaseROI|None | GetImageCopyWithDataAugmentation (self, int index, eVision.EasyDeepLearning.EDLDataAugmentationType generationType) |
| Generates a new image from the i-th image of the dataset. | |
| eVision.EBaseROI|None | GetImageCopyWithDataAugmentation (self, int index) |
| Generates a new image from the i-th image of the dataset. | |
| None | GetImageCopyWithDataAugmentation (self, int index, eVision.EBaseROI img, eVision.EasyDeepLearning.EDLDataAugmentationType generationType) |
| Generates a new image from the i-th image of the dataset. | |
| None | GetImageCopyWithDataAugmentation (self, int index, eVision.EBaseROI img) |
| Generates a new image from the i-th image of the dataset. | |
| None | SplitDataset (self, eVision.EasyDeepLearning.EClassificationDataset d1, eVision.EasyDeepLearning.EClassificationDataset d2, float proportion, bool random) |
| Splits the dataset in two parts to be used for training and validation respectively. | |
| None | SplitDataset (self, eVision.EasyDeepLearning.EClassificationDataset d1, eVision.EasyDeepLearning.EClassificationDataset d2, float proportion) |
| Splits the dataset in two parts to be used for training and validation respectively. | |
| None | SplitDataset (self, eVision.EasyDeepLearning.EClassificationDataset d1, eVision.EasyDeepLearning.EClassificationDataset d2) |
| Splits the dataset in two parts to be used for training and validation respectively. | |
| None | SplitDatasetForSegmentation (self, eVision.EasyDeepLearning.EClassificationDataset d1, eVision.EasyDeepLearning.EClassificationDataset d2, float proportion, bool random) |
| Splits the dataset in two parts for a supervised segmenter. | |
| None | SplitDatasetForSegmentation (self, eVision.EasyDeepLearning.EClassificationDataset d1, eVision.EasyDeepLearning.EClassificationDataset d2, float proportion) |
| Splits the dataset in two parts for a supervised segmenter. | |
| None | SplitDatasetForSegmentation (self, eVision.EasyDeepLearning.EClassificationDataset d1, eVision.EasyDeepLearning.EClassificationDataset d2) |
| Splits the dataset in two parts for a supervised segmenter. | |
| None | SplitDatasetForLocator (self, eVision.EasyDeepLearning.EClassificationDataset d1, eVision.EasyDeepLearning.EClassificationDataset d2, float proportion, bool random) |
| Splits the dataset in two parts for training and validation of a eVision.EasyDeepLearning.ELocator tool. | |
| None | SplitDatasetForLocator (self, eVision.EasyDeepLearning.EClassificationDataset d1, eVision.EasyDeepLearning.EClassificationDataset d2, float proportion) |
| Splits the dataset in two parts for training and validation of a eVision.EasyDeepLearning.ELocator tool. | |
| None | SplitDatasetForLocator (self, eVision.EasyDeepLearning.EClassificationDataset d1, eVision.EasyDeepLearning.EClassificationDataset d2) |
| Splits the dataset in two parts for training and validation of a eVision.EasyDeepLearning.ELocator tool. | |
| eVision.EasyDeepLearning.EClassificationDataset | ExtractSplit (self, eVision.EasyDeepLearning.EDatasetSplit split, eVision.EasyDeepLearning.EDatasetType type) |
| Creates a new eVision.EasyDeepLearning.EClassificationDataset containing only the images of the given split type. | |
| Public Member Functions inherited from eVision.EasyDeepLearning.EDataset | |
| None | __init__ (self) |
| Constructs a eVision.EasyDeepLearning.EDataset object. | |
| None | __init__ (self, eVision.EasyDeepLearning.EDataset other) |
| Copy constructor of a eVision.EasyDeepLearning.EDataset object. | |
| None | Load (self, str path) |
| Loads a classification dataset from disk. | |
| None | Load (self, eVision.ESerializer|None serializer) |
| Loads a classification dataset from disk. | |
| None | Save (self, str path) |
| Saves a classification dataset to disk, containing the file paths to the images in the dataset and their associated label. | |
| None | Save (self, eVision.ESerializer|None serializer) |
| Saves a classification dataset to disk, containing the file paths to the images in the dataset and their associated label. | |
| None | SaveWithRelativePath (self, str path) |
| Saves the dataset with image paths relative to the directory in which the dataset file is saved. | |
| None | Export (self, str directory, eVision.EImageFileType fileType, int quality) |
| Exports the dataset and its images to the given directory. | |
| None | Export (self, str directory, eVision.EImageFileType fileType) |
| Exports the dataset and its images to the given directory. | |
| None | Export (self, str directory) |
| Exports the dataset and its images to the given directory. | |
| None | Export (self, str directory, bool keepFilename, eVision.EImageFileType fileType, int quality) |
| Exports the dataset and its images to the given directory. | |
| None | Export (self, str directory, bool keepFilename, eVision.EImageFileType fileType) |
| Exports the dataset and its images to the given directory. | |
| None | Export (self, str directory, bool keepFilename) |
| Exports the dataset and its images to the given directory. | |
| None | Export (self, str directory, int width, int height, int channels, eVision.EImageFileType fileType, int quality) |
| Exports the dataset and its images to the given directory. | |
| None | Export (self, str directory, int width, int height, int channels, eVision.EImageFileType fileType) |
| Exports the dataset and its images to the given directory. | |
| None | Export (self, str directory, int width, int height, int channels) |
| Exports the dataset and its images to the given directory. | |
| None | Export (self, str directory, int width, int height, int channels, bool keepFilename, eVision.EImageFileType fileType, int quality) |
| Exports the dataset and its images to the given directory. | |
| None | Export (self, str directory, int width, int height, int channels, bool keepFilename, eVision.EImageFileType fileType) |
| Exports the dataset and its images to the given directory. | |
| None | Export (self, str directory, int width, int height, int channels, bool keepFilename) |
| Exports the dataset and its images to the given directory. | |
| eVision.EasyDeepLearning.EImageAnnotationFormat | GetAvailableImageAnnotationFormat (self, str imageFile) |
| Image annotation file formats that are available next to the image file. | |
| eVision.EasyDeepLearning.EImageAnnotationFormat | GetAvailableImageAnnotationFormat (self, int imgId) |
| Image annotation file formats that are available next to the image file. | |
| None | ImportYOLOTXTAnnotations (self, int imgId, str labelFile) |
| Imports YOLO TXT annotations (for EasyLocate Bounding Box). | |
| None | ImportYOLOTXTAnnotations (self, str labelFile) |
| Imports YOLO TXT annotations (for EasyLocate Bounding Box). | |
| None | ImportPascalVOCXMLAnnotations (self, int imgId) |
| Imports Pascal VOC XML annotations (for EasyLocate Bounding Box). | |
| None | ImportPascalVOCXMLAnnotations (self) |
| Imports Pascal VOC XML annotations (for EasyLocate Bounding Box). | |
| int | AddImage (self, str imagePath) |
| Adds an image to the dataset. | |
| int | AddImage (self, str imagePath, str label) |
| Adds an image to the dataset. | |
| int | AddImage (self, str imagePath, int originX, int originY, int width, int height, eVision.ERegion mask) |
| Adds an image to the dataset. | |
| int | AddImage (self, str imagePath, int originX, int originY, int width, int height, eVision.ERegion mask, str label) |
| Adds an image to the dataset. | |
| int | AddImage (self, eVision.EBaseROI img) |
| Adds an image to the dataset. | |
| int | AddImage (self, eVision.EBaseROI img, str label) |
| Adds an image to the dataset. | |
| int | AddImage (self, eVision.EBaseROI img, int originX, int originY, int width, int height, eVision.ERegion mask) |
| Adds an image to the dataset. | |
| int | AddImage (self, eVision.EBaseROI img, int originX, int originY, int width, int height, eVision.ERegion mask, str label) |
| Adds an image to the dataset. | |
| int | AddImages (self, str filter) |
| Adds all the images present in the directory specified by the parameter path and whose filename matches the filter. | |
| int | AddImages (self, str filter, str label) |
| Adds all the images present in the directory specified by the parameter path and whose filename matches the filter. | |
| int | AddImages (self, str filter, int originX, int originY, int width, int height, eVision.ERegion mask) |
| Adds all the images present in the directory specified by the parameter path and whose filename matches the filter. | |
| int | AddImages (self, str filter, int originX, int originY, int width, int height, eVision.ERegion mask, str label) |
| Adds all the images present in the directory specified by the parameter path and whose filename matches the filter. | |
| int | AddImagesFromCSV (self, str csvFile, int imageColumn, int labelColumn, int skipLines, str separator) |
| Adds images using a CSV (Comma Separated Value) file where each row correspond to an image and the file path and label of each image is given in the columns imageColumn and labelColumn respectively. | |
| int | AddImagesFromCSV (self, str csvFile, int imageColumn, int labelColumn, int skipLines) |
| Adds images using a CSV (Comma Separated Value) file where each row correspond to an image and the file path and label of each image is given in the columns imageColumn and labelColumn respectively. | |
| int | AddImagesFromCSV (self, str csvFile, int imageColumn, int labelColumn) |
| Adds images using a CSV (Comma Separated Value) file where each row correspond to an image and the file path and label of each image is given in the columns imageColumn and labelColumn respectively. | |
| int | AddImagesFromCSV (self, str csvFile, int imageColumn) |
| Adds images using a CSV (Comma Separated Value) file where each row correspond to an image and the file path and label of each image is given in the columns imageColumn and labelColumn respectively. | |
| int | AddImagesFromCSV (self, str csvFile) |
| Adds images using a CSV (Comma Separated Value) file where each row correspond to an image and the file path and label of each image is given in the columns imageColumn and labelColumn respectively. | |
| None | RemoveImage (self, int imgId) |
| Removes the image at the given index. | |
| int | GetNumImagesForFile (self, str filePath) |
| Get the number of images in the dataset that are associated with the given image file. | |
| eVision.EBaseROI|None | GetImageCopy (self, int index) |
| Gets a copy of the i-th image of the dataset. | |
| None | GetImageCopy (self, int index, eVision.EBaseROI img) |
| Gets a copy of the i-th image of the dataset. | |
| str | GetImagePath (self, int index) |
| Gets the path of the i-th image of the dataset. | |
| bool | IsImageFile (self, int index) |
| Whether the image is stored as a file path towards an image. | |
| bool | IsEmbeddedImage (self, int index) |
| Whether the image is embedded into the dataset and is not a reference towards an image file. | |
| str | GetImageLabel (self, int index) |
| Gets the label of the i-th image of the dataset. | |
| None | SetImageLabel (self, int index, str label) |
| Sets the label of images in the dataset. | |
| None | SetImageLabel (self, str filter, str label) |
| Sets the label of images in the dataset. | |
| None | UnsetImageLabel (self, int index) |
| Unset the label of the given image of the dataset. | |
| bool | HasLabel (self, int index) |
| Whether an image has a classification label. | |
| list[int] | GetImagesIndexesWithLabel (self, str label) |
| Gets a list of index corresponding to the images associated with the given label. | |
| list[int] | GetImagesIndexesWithLabel (self, int labelIndex) |
| Gets a list of index corresponding to the images associated with the given label. | |
| None | AddLabel (self, str label) |
| Adds a label to the dataset. | |
| str | GetLabel (self, int i) |
| Gets the i-th label of the dataset (starting from 0 to eVision.EasyDeepLearning.EDataset.NumLabels - 1). | |
| None | SetLabel (self, int index, str label) |
| Sets the i-th label of the dataset (starting from 0 to eVision.EasyDeepLearning.EDataset.NumLabels - 1). | |
| float | GetLabelWeight (self, int index) |
| Gets the weight associated to the i-th label of the dataset (starting from 0 to eVision.EasyDeepLearning.EDataset.NumLabels - 1). | |
| None | SetLabelWeight (self, int index, float weight) |
| Sets the weight associated to the i-th label of the dataset (starting from 0 to eVision.EasyDeepLearning.EDataset.NumLabels - 1). | |
| None | SetLabelColor (self, int index, eVision.ERGBColor color) |
| Sets the label color for a classification label. | |
| eVision.ERGBColor | GetLabelColor (self, int index) |
| Gets the label color for a classification label. | |
| None | SetLabelOpacity (self, int index, int opacity) |
| Sets the label opacity for a classification label. | |
| int | GetLabelOpacity (self, int index) |
| Gets the label opacity for a classification label. | |
| None | RemoveLabel (self, str label) |
| Removes a label from the dataset. | |
| None | RemoveLabel (self, int labelId) |
| Removes a label from the dataset. | |
| None | SetSegmentationMap (self, int imageIndex, eVision.EROIBW16 segmentationMap) |
| Sets the segmentation map of an image. | |
| eVision.EImageBW16 | GetSegmentationMap (self, int imageIndex) |
| Gets the segmentation map of an image. | |
| None | UnsetSegmentation (self, int imageIndex) |
| Unsets the segmentation of an image. | |
| None | ResetSegmentation (self, int imageIndex) |
| Resets the segmentation of an image by setting all pixels to background. | |
| None | AddRegionToSegment (self, int imageIndex, int segmentationLabelIndex, eVision.ERegion region) |
| Adds a region (see eVision.ERegion) to the given segment of an image. | |
| None | AddRegionToSegment (self, int imageIndex, str label, eVision.ERegion region) |
| Adds a region (see eVision.ERegion) to the given segment of an image. | |
| eVision.ERegion | GetRegionForSegment (self, int imageIndex, int segmentationLabelIndex) |
| Gets a region corresponding to the pixels of the given segment. | |
| eVision.ERegion | GetRegionForSegment (self, int imageIndex, str segmentationLabel) |
| Gets a region corresponding to the pixels of the given segment. | |
| int | GetNumImagesForSegmentationLabel (self, int labelId) |
| Number of images containing the given segmentation label. | |
| int | GetNumImagesForSegmentationLabel (self, str label) |
| Number of images containing the given segmentation label. | |
| int | GetNumPixelsForSegmentationLabel (self, int labelId) |
| Number of pixels assigned to the given segmentation label. | |
| int | GetNumPixelsForSegmentationLabel (self, str label) |
| Number of pixels assigned to the given segmentation label. | |
| bool | HasSegmentation (self, int imageId) |
| Whether the image has a segmentation. | |
| bool | HasForegroundSegments (self, int imageId) |
| Whether the image segmentation contains segments that are not background. | |
| int | GetNumSegmentedBlobs (self, int imageId) |
| Number of segmented blobs in the image for all non-background labels or for a specific label. | |
| int | GetNumSegmentedBlobs (self, int imageId, str label) |
| Number of segmented blobs in the image for all non-background labels or for a specific label. | |
| int | GetNumSegmentedBlobs (self, int imageId, int labelId) |
| Number of segmented blobs in the image for all non-background labels or for a specific label. | |
| str | GetSegmentationLabel (self, int index) |
| Gets the segmentation label. | |
| None | SetSegmentationLabel (self, int index, str label) |
| Sets the segmentation labels. | |
| int | AddSegmentationLabel (self, str label, float labelWeight) |
| Adds a segmentation label. | |
| int | AddSegmentationLabel (self, str label) |
| Adds a segmentation label. | |
| None | RemoveSegmentationLabel (self, str label) |
| Remove a segmentation label. | |
| None | RemoveSegmentationLabel (self, int index) |
| Remove a segmentation label. | |
| float | GetSegmentationLabelWeight (self, int index) |
| Gets the segmentation label weights. | |
| float | GetSegmentationLabelWeight (self, str label) |
| Gets the segmentation label weights. | |
| None | SetSegmentationLabelWeight (self, int index, float weight) |
| Sets the segmentation label weight. | |
| None | SetSegmentationLabelWeight (self, str label, float weight) |
| Sets the segmentation label weight. | |
| None | SetSegmentationLabelColor (self, int index, eVision.ERGBColor color) |
| Sets the label color for a segmentation label. | |
| eVision.ERGBColor | GetSegmentationLabelColor (self, int index) |
| Gets the label color for a segmentation label. | |
| None | SetSegmentationLabelOpacity (self, int index, int opacity) |
| Sets the label opacity for a segmentation label. | |
| int | GetSegmentationLabelOpacity (self, int index) |
| Gets the label opacity for a segmentation label. | |
| None | ResetImageObjectLabeling (self, int imageIndex) |
| Resets the object labeling for the specified image. | |
| None | UnsetImageObjectLabeling (self, int imageIndex) |
| Unsets the object labeling for the specified image. | |
| list[eVision._eVision.EasyDeepLearning.ELocatorObject] | GetImageObjects (self, int imageIndex) |
| Gets all the objects of the specified image. | |
| int | GetImageNumObjects (self, int imageIndex) |
| Number of objects for the specified image. | |
| eVision.EasyDeepLearning.ELocatorObject | GetImageObject (self, int imageIndex, int objectIndex) |
| Gets the specified object for the given image. | |
| None | SetImageObject (self, int imageIndex, int objectIndex, eVision.EasyDeepLearning.ELocatorObject obj) |
| Sets the specified object for the given image. | |
| None | SetImageObject (self, int imageIndex, int objectIndex, str label) |
| Sets the specified object for the given image. | |
| None | SetImageObject (self, int imageIndex, int objectIndex, eVision.ERectangleRegion region) |
| Sets the specified object for the given image. | |
| None | AddImageObject (self, int imageIndex, eVision.EasyDeepLearning.ELocatorObject obj) |
| Adds an object to the image. | |
| None | AddImageObject (self, int imageIndex, str label, eVision.ERectangleRegion box) |
| Adds an object to the image. | |
| None | RemoveImageObject (self, int imageIndex, int objectIndex) |
| Removes an object from an image. | |
| str | GetObjectLabel (self, int labelIndex) |
| Object label. | |
| None | SetObjectLabel (self, int labelIndex, str newLabel) |
| Sets an object label. | |
| None | SetObjectLabel (self, str oldLabel, str newLabel) |
| Sets an object label. | |
| None | AddObjectLabel (self, str label, float weight) |
| Adds an object label. | |
| None | AddObjectLabel (self, str label) |
| Adds an object label. | |
| None | RemoveObjectLabel (self, int labelIndex) |
| Removes an object label. | |
| None | RemoveObjectLabel (self, str label) |
| Removes an object label. | |
| None | SetObjectLabelWeight (self, int labelIndex, float weight) |
| Sets the weight of an object label. | |
| None | SetObjectLabelWeight (self, str label, float weight) |
| Sets the weight of an object label. | |
| float | GetObjectLabelWeight (self, int labelIndex) |
| Gets the weight of an object label. | |
| float | GetObjectLabelWeight (self, str label) |
| Gets the weight of an object label. | |
| None | SetObjectLabelColor (self, int index, eVision.ERGBColor color) |
| Sets the label color for an object label. | |
| eVision.ERGBColor | GetObjectLabelColor (self, int index) |
| Gets the label color for an object label. | |
| None | SetObjectLabelOpacity (self, int index, int opacity) |
| Sets the label opacity for an object label. | |
| int | GetObjectLabelOpacity (self, int index) |
| Gets the label opacity for an object label. | |
| bool | HasObjectLabeling (self, int imageIndex) |
| Whether the image is labeled for object detection and use with eVision.EasyDeepLearning.ELocator. | |
| int | GetNumImagesWithObjectLabel (self, int labelIdx) |
| Number of images that contain an object with the given label. | |
| int | GetNumImagesWithObjectLabel (self, str label) |
| Number of images that contain an object with the given label. | |
| int | GetNumObjectsWithLabel (self, int labelIdx) |
| Number of objects with the given label. | |
| int | GetNumObjectsWithLabel (self, str label) |
| Number of objects with the given label. | |
| bool | HasOCRAnnotations (self, int imgId) |
| Whether the specified image has OCR annotations. | |
| None | UnsetOCRAnnotations (self, int imgId) |
| Unsets the OCR labeling for the specified image. | |
| list[eVision._eVision.EasyDeepOCR.ETextLine] | GetOCRAnnotations (self, int imgId) |
| Ground truth text lines for the specified image. | |
| None | SetOCRAnnotations (self, int imgId, list[eVision._eVision.EasyDeepOCR.ETextLine] texts) |
| Sets the ground truth text lines for the specified image. | |
| eVision.EasyDeepLearning.EDatasetSplit | GetSplit (self, float trainingProportion, float validationPropotion, eVision.EasyDeepLearning.EDeepLearningToolType toolType, str goodLabel) |
| Generates a split. | |
| eVision.EasyDeepLearning.EDatasetSplit | GetSplit (self, float trainingProportion, float validationPropotion, eVision.EasyDeepLearning.EDeepLearningToolType toolType, str goodLabel, int seed) |
| Generates a split. | |
| None | SetRegionOfInterest (self, int imageIndex, int xOrg, int yOrg, int width, int height) |
| Sets the region of interest for the specified image. | |
| int | GetRegionOfInterestOriginX (self, int imageIndex) |
| Region of interest origin abscissa for the specified image. | |
| int | GetRegionOfInterestOriginY (self, int imageIndex) |
| Region of interest origin ordinate for the specified image. | |
| int | GetRegionOfInterestWidth (self, int imageIndex) |
| Region of interest width for the specified image. | |
| int | GetRegionOfInterestHeight (self, int imageIndex) |
| Region of interest height for the specified image. | |
| eVision.ERegion | GetMask (self, int imageIndex) |
| Gets the mask region/don't care area for the given image. | |
| None | SetMask (self, int imageIndex, eVision.ERegion mask) |
| Sets the mask region/don't care area for the given image. | |
Properties | |
| EnableDataAugmentation = property(_EnableDataAugmentation__getter, _EnableDataAugmentation__setter) | |
| Enable data augmentation. | |
| MaxHorizontalShift = property(_MaxHorizontalShift__getter, _MaxHorizontalShift__setter) | |
| Maximum horizontal shift for data augmentation. | |
| MaxVerticalShift = property(_MaxVerticalShift__getter, _MaxVerticalShift__setter) | |
| Maximum vertical shift for data augmentation. | |
| MaxRotationAngle = property(_MaxRotationAngle__getter, _MaxRotationAngle__setter) | |
| Maximum rotation angle for data augmentation. | |
| EnableVerticalFlip = property(_EnableVerticalFlip__getter, _EnableVerticalFlip__setter) | |
| Enable vertical flipping in data augmentation. | |
| EnableHorizontalFlip = property(_EnableHorizontalFlip__getter, _EnableHorizontalFlip__setter) | |
| Enable horizontal flipping in data augmentation. | |
| MinScale = property(_MinScale__getter, _MinScale__setter) | |
| Minimum scaling allowed for data augmentation. | |
| MaxScale = property(_MaxScale__getter, _MaxScale__setter) | |
| Maximum scaling allowed for data augmentation. | |
| MaxHorizontalShear = property(_MaxHorizontalShear__getter, _MaxHorizontalShear__setter) | |
| Maximum absolute horizontal shear. | |
| MaxVerticalShear = property(_MaxVerticalShear__getter, _MaxVerticalShear__setter) | |
| Maximum absolute vertical shear. | |
| MaxBrightnessOffset = property(_MaxBrightnessOffset__getter, _MaxBrightnessOffset__setter) | |
| Maximum absolute brightness offset. | |
| MaxContrastGain = property(_MaxContrastGain__getter, _MaxContrastGain__setter) | |
| Maximum contrast gain. | |
| MinContrastGain = property(_MinContrastGain__getter, _MinContrastGain__setter) | |
| Minimum contrast gain. | |
| MinGamma = property(_MinGamma__getter, _MinGamma__setter) | |
| Minimum gamma for gamma correction. | |
| MaxGamma = property(_MaxGamma__getter, _MaxGamma__setter) | |
| \endcond | |
| MaxHueOffset = property(_MaxHueOffset__getter, _MaxHueOffset__setter) | |
| \endcond | |
| MinSaturationGain = property(_MinSaturationGain__getter, _MinSaturationGain__setter) | |
| \endcond | |
| MaxSaturationGain = property(_MaxSaturationGain__getter, _MaxSaturationGain__setter) | |
| \endcond | |
| GaussianNoiseMaximumStandardDeviation = property(_GaussianNoiseMaximumStandardDeviation__getter, _GaussianNoiseMaximumStandardDeviation__setter) | |
| \endcond | |
| GaussianNoiseMinimumStandardDeviation = property(_GaussianNoiseMinimumStandardDeviation__getter, _GaussianNoiseMinimumStandardDeviation__setter) | |
| \endcond | |
| SpeckleNoiseMaximumStandardDeviation = property(_SpeckleNoiseMaximumStandardDeviation__getter, _SpeckleNoiseMaximumStandardDeviation__setter) | |
| \endcond | |
| SpeckleNoiseMinimumStandardDeviation = property(_SpeckleNoiseMinimumStandardDeviation__getter, _SpeckleNoiseMinimumStandardDeviation__setter) | |
| \endcond | |
| SaltAndPepperNoiseMaximumDensity = property(_SaltAndPepperNoiseMaximumDensity__getter, _SaltAndPepperNoiseMaximumDensity__setter) | |
| \endcond | |
| SaltAndPepperNoiseMinimumDensity = property(_SaltAndPepperNoiseMinimumDensity__getter, _SaltAndPepperNoiseMinimumDensity__setter) | |
| \endcond | |
| Properties inherited from eVision.EasyDeepLearning.EDataset | |
| BasePath = property(None, _BasePath__setter) | |
| \endcond | |
| Width = property(_Width__getter, None) | |
| \endcond | |
| Height = property(_Height__getter, None) | |
| \endcond | |
| Channels = property(_Channels__getter, None) | |
| \endcond | |
| NumImages = property(_NumImages__getter, None) | |
| \endcond | |
| NumImageFiles = property(_NumImageFiles__getter, None) | |
| \endcond | |
| NumLabeledImages = property(_NumLabeledImages__getter, None) | |
| \endcond | |
| NumUnlabeledImages = property(_NumUnlabeledImages__getter, None) | |
| \endcond | |
| LabeledImagesIndexes = property(_LabeledImagesIndexes__getter, None) | |
| \endcond | |
| TextLabeledImagesIndexes = property(_TextLabeledImagesIndexes__getter, None) | |
| \endcond | |
| ImagesIndexesWithNoLabel = property(_ImagesIndexesWithNoLabel__getter, None) | |
| \endcond | |
| NumLabels = property(_NumLabels__getter, None) | |
| \endcond | |
| NumSegmentationLabels = property(_NumSegmentationLabels__getter, None) | |
| \endcond | |
| NumImagesWithSegmentation = property(_NumImagesWithSegmentation__getter, None) | |
| \endcond | |
| NumImagesWithoutSegmentation = property(_NumImagesWithoutSegmentation__getter, None) | |
| \endcond | |
| NumImagesWithoutForegroundSegments = property(_NumImagesWithoutForegroundSegments__getter, None) | |
| \endcond | |
| NumImagesWithForegroundSegments = property(_NumImagesWithForegroundSegments__getter, None) | |
| \endcond | |
| NumObjectLabels = property(_NumObjectLabels__getter, None) | |
| \endcond | |
| NumImagesWithObjectLabeling = property(_NumImagesWithObjectLabeling__getter, None) | |
| \endcond | |
| NumImagesWithoutObjectLabeling = property(_NumImagesWithoutObjectLabeling__getter, None) | |
| \endcond | |
| NumImagesWithoutObjects = property(_NumImagesWithoutObjects__getter, None) | |
| \endcond | |
| NumImagesWithObjects = property(_NumImagesWithObjects__getter, None) | |
| \endcond | |
| SameLabelMaxOverlap = property(_SameLabelMaxOverlap__getter, None) | |
| \endcond | |
| AbsoluteMaxOverlap = property(_AbsoluteMaxOverlap__getter, None) | |
| \endcond | |
| MaxNumObjectPerImage = property(_MaxNumObjectPerImage__getter, None) | |
| \endcond | |
| ObjectSize = property(_ObjectSize__getter, _ObjectSize__setter) | |
| \endcond | |
| NumImagesWithOCR = property(_NumImagesWithOCR__getter, None) | |
| \endcond | |
| NumImagesWithoutOCR = property(_NumImagesWithoutOCR__getter, None) | |
| \endcond | |
| NumTexts = property(_NumTexts__getter, None) | |
| \endcond | |
| TextDataset = property(_TextDataset__getter, None) | |
| \endcond | |
| TextOrientationDataset = property(_TextOrientationDataset__getter, None) | |
| \endcond | |
eVision.EasyDeepLearning.EClassificationDataset manages a dataset of images.
A dataset is a collection of images with different types of labeling: labeling for the classification of images, labeling for the segmentation of pixels, and/or labeling for the detection of objects (classification and localization).
The dataset maintains 3 sets of labels for each type of labeling:
The classification and segmentation labels are entirely user defined. The set of segmentation labels will always contain at least the "Background" label representing pixels of the images that have no relevant information for your task (for example, in a defect segmentation application, the "Background" pixels would be the pixels without any defects).
For each type of labeling, an image can either be unlabeled or labeled. When an image in unlabeled for a given type of labeling, the image won't be used for training a deep learning tool that requires this type of labeling.
The image in the dataset can be stored as path to an image file or as an eVision image structure. Supported structures are 8-bits monochrome (eVision.EImageBW8), 16-bits monochrome (eVision.EImageBW16), and 24-bits color (eVision.EROIC24, eVision.EImageC24).
The dataset associates with each image a region of interest and a mask/don't care area. By default, the region of interest of an image is its full extent and its mask is empty.
A eVision.EasyDeepLearning.EClassificationDataset object is also responsible for providing tools to do data augmentation. Data augmentation is the process of generating new images on-the-fly by applying affine transformations to those already in the dataset. Data augmentation allows a deep neural network to be invariant to the applied transformation without having to capture and label real world images containing those transformations.
A dataset can contain images with different sizes (with and height of their region of interest). However, the dataset has a default resolution (see eVision.EasyDeepLearning.EDataset.Width and eVision.EasyDeepLearning.EDataset.Height) that is used by deep learning tools that require the same input image size such as the eVision.EasyDeepLearning.EClassifier. When the images have different sizes, the default resolution will be the resolution of the region of interest of the first image added to the dataset.
Remarks:
License(s): BasicTypes
| None eVision.EasyDeepLearning.EClassificationDataset.__init__ | ( | self | ) |
Constructs a eVision.EasyDeepLearning.EClassificationDataset object.
| None eVision.EasyDeepLearning.EClassificationDataset.__init__ | ( | self, | |
| eVision.EasyDeepLearning.EClassificationDataset | other ) |
Copy constructor of a eVision.EasyDeepLearning.EClassificationDataset object.
| other | Reference to the eVision.EasyDeepLearning.EClassificationDataset object that should be copied |
| None eVision.EasyDeepLearning.EClassificationDataset.__init__ | ( | self, | |
| eVision.EasyDeepLearning.EDataset | other ) |
Copy constructor of a eVision.EasyDeepLearning.EClassificationDataset object from a eVision.EasyDeepLearning.EDataset object.
| other | Reference to the eVision.EasyDeepLearning.EDataset object that should be copied |
|
protected |
\cond
The Gaussian noise maximum standard deviation.
The Gaussian noise is an additive noise sampled from a Gaussian distribution of deviation between eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMaximumStandardDeviation (also called the normal distribution).
Its value must be superior or equal to eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMinimumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
protected |
The Gaussian noise maximum standard deviation.
The Gaussian noise is an additive noise sampled from a Gaussian distribution of deviation between eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMaximumStandardDeviation (also called the normal distribution).
Its value must be superior or equal to eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMinimumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
protected |
\cond
The Gaussian noise minimum standard deviation.
The Gaussian noise is an additive noise sampled from a Gaussian distribution of deviation between eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMaximumStandardDeviation (also called the normal distribution).
Its value must be between 0 and eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMaximumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
protected |
The Gaussian noise minimum standard deviation.
The Gaussian noise is an additive noise sampled from a Gaussian distribution of deviation between eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMaximumStandardDeviation (also called the normal distribution).
Its value must be between 0 and eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMaximumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
protected |
\cond
Maximum gamma for gamma correction. Its value must be higher than eVision.EasyDeepLearning.EClassificationDataset.MinGamma.
Remarks:
Gamma correction transformation is performed by raising each normalized pixel value to the power of gamma with gamma taken between eVision.EasyDeepLearning.EClassificationDataset.MinGamma and eVision.EasyDeepLearning.EClassificationDataset.MaxGamma.
|
protected |
Maximum gamma for gamma correction.
Its value must be higher than eVision.EasyDeepLearning.EClassificationDataset.MinGamma.
Remarks:
Gamma correction transformation is performed by raising each normalized pixel value to the power of gamma with gamma taken between eVision.EasyDeepLearning.EClassificationDataset.MinGamma and eVision.EasyDeepLearning.EClassificationDataset.MaxGamma.
|
protected |
\cond
Maximum absolute hue offset. Its value must be between 0 and 180 degrees.
Remarks:
The hue is represented as an angle between 0 and 360 degrees. The hue transformation is performed by rotating the hue of each pixel by a value between -eVision.EasyDeepLearning.EClassificationDataset.MaxHueOffset and +eVision.EasyDeepLearning.EClassificationDataset.MaxHueOffset. This transformation only works for color images.
|
protected |
Maximum absolute hue offset.
Its value must be between 0 and 180 degrees.
Remarks:
The hue is represented as an angle between 0 and 360 degrees. The hue transformation is performed by rotating the hue of each pixel by a value between -eVision.EasyDeepLearning.EClassificationDataset.MaxHueOffset and +eVision.EasyDeepLearning.EClassificationDataset.MaxHueOffset. This transformation only works for color images.
|
protected |
\cond
Maximum saturation gain. Its value must be over or equal to eVision.EasyDeepLearning.EClassificationDataset.MinSaturationGain.
Remarks:
The saturation transformation is performed by multiplying the saturation of each pixel by a value between eVision.EasyDeepLearning.EClassificationDataset.MinSaturationGain and eVision.EasyDeepLearning.EClassificationDataset.MaxSaturationGain.
|
protected |
Maximum saturation gain.
Its value must be over or equal to eVision.EasyDeepLearning.EClassificationDataset.MinSaturationGain.
Remarks:
The saturation transformation is performed by multiplying the saturation of each pixel by a value between eVision.EasyDeepLearning.EClassificationDataset.MinSaturationGain and eVision.EasyDeepLearning.EClassificationDataset.MaxSaturationGain.
|
protected |
\cond
Minimum saturation gain. Its value must be strictly positive.
Remarks:
The saturation transformation is performed by multiplying the saturation of each pixel by a value between eVision.EasyDeepLearning.EClassificationDataset.MinSaturationGain and eVision.EasyDeepLearning.EClassificationDataset.MaxSaturationGain.
|
protected |
Minimum saturation gain.
Its value must be strictly positive.
Remarks:
The saturation transformation is performed by multiplying the saturation of each pixel by a value between eVision.EasyDeepLearning.EClassificationDataset.MinSaturationGain and eVision.EasyDeepLearning.EClassificationDataset.MaxSaturationGain.
|
protected |
\cond
The maximum density of the salt and pepper noise.
The salt and pepper noise sets the value of a number of randomly selected (between eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMinimumDensity and eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMaximumDensity) pixels to its minimum or maximum value.
Its value must be between eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMinimumDensity and 1.
Remarks:
This noise is computed after all the other noises.
|
protected |
The maximum density of the salt and pepper noise.
The salt and pepper noise sets the value of a number of randomly selected (between eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMinimumDensity and eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMaximumDensity) pixels to its minimum or maximum value.
Its value must be between eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMinimumDensity and 1.
Remarks:
This noise is computed after all the other noises.
|
protected |
\cond
The minimum density of the salt and pepper noise.
The salt and pepper noise sets the value of a number of randomly selected (between eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMinimumDensity and eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMaximumDensity) pixels to its minimum or maximum value.
Its value must be between 0 and eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMaximumDensity.
Remarks:
This noise is computed after all the other noises.
|
protected |
The minimum density of the salt and pepper noise.
The salt and pepper noise sets the value of a number of randomly selected (between eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMinimumDensity and eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMaximumDensity) pixels to its minimum or maximum value.
Its value must be between 0 and eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMaximumDensity.
Remarks:
This noise is computed after all the other noises.
|
protected |
\cond
The speckle noise maximum standard deviation.
The speckle noise is a multiplicative noise sampled from a Gamma distribution with a mean of 1 and with its standard deviation between eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMaximumStandardDeviation.
Its value must be strictly higher than eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMinimumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
protected |
The speckle noise maximum standard deviation.
The speckle noise is a multiplicative noise sampled from a Gamma distribution with a mean of 1 and with its standard deviation between eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMaximumStandardDeviation.
Its value must be strictly higher than eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMinimumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
protected |
\cond
The speckle noise minimum standard deviation.
The speckle noise is a multiplicative noise sampled from a Gamma distribution with a mean of 1 and with its standard deviation between eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMaximumStandardDeviation.
Its value must be strictly positive and lower than eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMaximumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
protected |
The speckle noise minimum standard deviation.
The speckle noise is a multiplicative noise sampled from a Gamma distribution with a mean of 1 and with its standard deviation between eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMaximumStandardDeviation.
Its value must be strictly positive and lower than eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMaximumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
| None eVision.EasyDeepLearning.EClassificationDataset.Clear | ( | self | ) |
Clears the dataset.
Reimplemented from eVision.EasyDeepLearning.EDataset.
| eVision.EasyDeepLearning.EClassificationDataset eVision.EasyDeepLearning.EClassificationDataset.ExtractSplit | ( | self, | |
| eVision.EasyDeepLearning.EDatasetSplit | split, | ||
| eVision.EasyDeepLearning.EDatasetType | type ) |
Creates a new eVision.EasyDeepLearning.EClassificationDataset containing only the images of the given split type.
| split | Split |
| type | Type of the split to extract |
Reimplemented from eVision.EasyDeepLearning.EDataset.
| eVision.EBaseROI | None eVision.EasyDeepLearning.EClassificationDataset.GetImageCopyWithDataAugmentation | ( | self, | |
| int | index ) |
Generates a new image from the i-th image of the dataset.
For the variant where a pointer is returned, the user is responsible for clearing the memory of the returned pointer.
Remarks:
If the data augmentation fails, the method will throw an exception.
| index | The index of the image. |
| eVision.EBaseROI | None eVision.EasyDeepLearning.EClassificationDataset.GetImageCopyWithDataAugmentation | ( | self, | |
| int | index, | ||
| eVision.EasyDeepLearning.EDLDataAugmentationType | generationType ) |
Generates a new image from the i-th image of the dataset.
For the variant where a pointer is returned, the user is responsible for clearing the memory of the returned pointer.
Remarks:
If the data augmentation fails, the method will throw an exception.
| index | The index of the image. |
| generationType | The type of transformation to generate (default: random). |
| None eVision.EasyDeepLearning.EClassificationDataset.GetImageCopyWithDataAugmentation | ( | self, | |
| int | index, | ||
| eVision.EBaseROI | img ) |
Generates a new image from the i-th image of the dataset.
For the variant where a pointer is returned, the user is responsible for clearing the memory of the returned pointer.
Remarks:
If the data augmentation fails, the method will throw an exception.
| index | The index of the image. |
| img | Image object to copy the image into. |
| None eVision.EasyDeepLearning.EClassificationDataset.GetImageCopyWithDataAugmentation | ( | self, | |
| int | index, | ||
| eVision.EBaseROI | img, | ||
| eVision.EasyDeepLearning.EDLDataAugmentationType | generationType ) |
Generates a new image from the i-th image of the dataset.
For the variant where a pointer is returned, the user is responsible for clearing the memory of the returned pointer.
Remarks:
If the data augmentation fails, the method will throw an exception.
| index | The index of the image. |
| img | Image object to copy the image into. |
| generationType | The type of transformation to generate (default: random). |
| None eVision.EasyDeepLearning.EClassificationDataset.SplitDataset | ( | self, | |
| eVision.EasyDeepLearning.EClassificationDataset | d1, | ||
| eVision.EasyDeepLearning.EClassificationDataset | d2 ) |
Splits the dataset in two parts to be used for training and validation respectively.
| d1 | First part of the dataset |
| d2 | Second part of the dataset |
Reimplemented from eVision.EasyDeepLearning.EDataset.
| None eVision.EasyDeepLearning.EClassificationDataset.SplitDataset | ( | self, | |
| eVision.EasyDeepLearning.EClassificationDataset | d1, | ||
| eVision.EasyDeepLearning.EClassificationDataset | d2, | ||
| float | proportion ) |
Splits the dataset in two parts to be used for training and validation respectively.
| d1 | First part of the dataset |
| d2 | Second part of the dataset |
| proportion | Proportion of image of each class to put into the first part. The remaining images are put in d2 |
Reimplemented from eVision.EasyDeepLearning.EDataset.
| None eVision.EasyDeepLearning.EClassificationDataset.SplitDataset | ( | self, | |
| eVision.EasyDeepLearning.EClassificationDataset | d1, | ||
| eVision.EasyDeepLearning.EClassificationDataset | d2, | ||
| float | proportion, | ||
| bool | random ) |
Splits the dataset in two parts to be used for training and validation respectively.
| d1 | First part of the dataset |
| d2 | Second part of the dataset |
| proportion | Proportion of image of each class to put into the first part. The remaining images are put in d2 |
| random | Randomly sample the images. |
Reimplemented from eVision.EasyDeepLearning.EDataset.
| None eVision.EasyDeepLearning.EClassificationDataset.SplitDatasetForLocator | ( | self, | |
| eVision.EasyDeepLearning.EClassificationDataset | d1, | ||
| eVision.EasyDeepLearning.EClassificationDataset | d2 ) |
Splits the dataset in two parts for training and validation of a eVision.EasyDeepLearning.ELocator tool.
Images without object labeling are excluded from the split.
Remarks:
The method ensures that all the object labels are represented in d1. Thus, even when the parameter random is set to false, the images in d1 and d2 can be ordered differently than they were in the original dataset.
| d1 | First part of the dataset |
| d2 | Second part of the dataset |
Reimplemented from eVision.EasyDeepLearning.EDataset.
| None eVision.EasyDeepLearning.EClassificationDataset.SplitDatasetForLocator | ( | self, | |
| eVision.EasyDeepLearning.EClassificationDataset | d1, | ||
| eVision.EasyDeepLearning.EClassificationDataset | d2, | ||
| float | proportion ) |
Splits the dataset in two parts for training and validation of a eVision.EasyDeepLearning.ELocator tool.
Images without object labeling are excluded from the split.
Remarks:
The method ensures that all the object labels are represented in d1. Thus, even when the parameter random is set to false, the images in d1 and d2 can be ordered differently than they were in the original dataset.
| d1 | First part of the dataset |
| d2 | Second part of the dataset |
| proportion | Proportion of image of each class to put into the first part. The remaining images are put in d2 |
Reimplemented from eVision.EasyDeepLearning.EDataset.
| None eVision.EasyDeepLearning.EClassificationDataset.SplitDatasetForLocator | ( | self, | |
| eVision.EasyDeepLearning.EClassificationDataset | d1, | ||
| eVision.EasyDeepLearning.EClassificationDataset | d2, | ||
| float | proportion, | ||
| bool | random ) |
Splits the dataset in two parts for training and validation of a eVision.EasyDeepLearning.ELocator tool.
Images without object labeling are excluded from the split.
Remarks:
The method ensures that all the object labels are represented in d1. Thus, even when the parameter random is set to false, the images in d1 and d2 can be ordered differently than they were in the original dataset.
| d1 | First part of the dataset |
| d2 | Second part of the dataset |
| proportion | Proportion of image of each class to put into the first part. The remaining images are put in d2 |
| random | Randomly sample the images. |
Reimplemented from eVision.EasyDeepLearning.EDataset.
| None eVision.EasyDeepLearning.EClassificationDataset.SplitDatasetForSegmentation | ( | self, | |
| eVision.EasyDeepLearning.EClassificationDataset | d1, | ||
| eVision.EasyDeepLearning.EClassificationDataset | d2 ) |
Splits the dataset in two parts for a supervised segmenter.
The two parts are to be used for training and validation respectively.
Remarks:
The method ensures that all the segmentation labels are represented in d1. Thus, even when the parameter random is set to false, the images in d1 and d2 can be ordered differently than they were in the original dataset.
| d1 | First part of the dataset |
| d2 | Second part of the dataset |
Reimplemented from eVision.EasyDeepLearning.EDataset.
| None eVision.EasyDeepLearning.EClassificationDataset.SplitDatasetForSegmentation | ( | self, | |
| eVision.EasyDeepLearning.EClassificationDataset | d1, | ||
| eVision.EasyDeepLearning.EClassificationDataset | d2, | ||
| float | proportion ) |
Splits the dataset in two parts for a supervised segmenter.
The two parts are to be used for training and validation respectively.
Remarks:
The method ensures that all the segmentation labels are represented in d1. Thus, even when the parameter random is set to false, the images in d1 and d2 can be ordered differently than they were in the original dataset.
| d1 | First part of the dataset |
| d2 | Second part of the dataset |
| proportion | Proportion of image of each class to put into the first part. The remaining images are put in d2 |
Reimplemented from eVision.EasyDeepLearning.EDataset.
| None eVision.EasyDeepLearning.EClassificationDataset.SplitDatasetForSegmentation | ( | self, | |
| eVision.EasyDeepLearning.EClassificationDataset | d1, | ||
| eVision.EasyDeepLearning.EClassificationDataset | d2, | ||
| float | proportion, | ||
| bool | random ) |
Splits the dataset in two parts for a supervised segmenter.
The two parts are to be used for training and validation respectively.
Remarks:
The method ensures that all the segmentation labels are represented in d1. Thus, even when the parameter random is set to false, the images in d1 and d2 can be ordered differently than they were in the original dataset.
| d1 | First part of the dataset |
| d2 | Second part of the dataset |
| proportion | Proportion of image of each class to put into the first part. The remaining images are put in d2 |
| random | Randomly sample the images. |
Reimplemented from eVision.EasyDeepLearning.EDataset.
|
static |
Enable data augmentation.
|
static |
Enable horizontal flipping in data augmentation.
|
static |
Enable vertical flipping in data augmentation.
|
static |
\endcond
The Gaussian noise maximum standard deviation.
The Gaussian noise is an additive noise sampled from a Gaussian distribution of deviation between eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMaximumStandardDeviation (also called the normal distribution).
Its value must be superior or equal to eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMinimumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
static |
\endcond
The Gaussian noise minimum standard deviation.
The Gaussian noise is an additive noise sampled from a Gaussian distribution of deviation between eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMaximumStandardDeviation (also called the normal distribution).
Its value must be between 0 and eVision.EasyDeepLearning.EClassificationDataset.GaussianNoiseMaximumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
static |
Maximum absolute brightness offset.
Its value must be between 0 and 1.
Remarks:
Brightness transformation is performed by adding a value taken between -eVision.EasyDeepLearning.EClassificationDataset.MaxBrightnessOffset and +eVision.EasyDeepLearning.EClassificationDataset.MaxBrightnessOffset to each pixel of the normalized image.
|
static |
Maximum contrast gain.
Its value must be strictly positive and over eVision.EasyDeepLearning.EClassificationDataset.MinContrastGain.
Remarks:
Contrast transformation is performed by multiplying each mean-centered pixel value by a gain value taken between eVision.EasyDeepLearning.EClassificationDataset.MinContrastGain and eVision.EasyDeepLearning.EClassificationDataset.MaxContrastGain. A contrast transformation does not change the overall brightness of an image.
|
static |
\endcond
Maximum gamma for gamma correction. Its value must be higher than eVision.EasyDeepLearning.EClassificationDataset.MinGamma.
Remarks:
Gamma correction transformation is performed by raising each normalized pixel value to the power of gamma with gamma taken between eVision.EasyDeepLearning.EClassificationDataset.MinGamma and eVision.EasyDeepLearning.EClassificationDataset.MaxGamma.
|
static |
Maximum absolute horizontal shear.
It is represented as an angle from the vertical direction. Its value must be between 0 and 90 degrees.
|
static |
Maximum horizontal shift for data augmentation.
The horizontal shift will be between -eVision.EasyDeepLearning.EClassificationDataset.MaxHorizontalShift and +eVision.EasyDeepLearning.EClassificationDataset.MaxHorizontalShift.
|
static |
\endcond
Maximum absolute hue offset. Its value must be between 0 and 180 degrees.
Remarks:
The hue is represented as an angle between 0 and 360 degrees. The hue transformation is performed by rotating the hue of each pixel by a value between -eVision.EasyDeepLearning.EClassificationDataset.MaxHueOffset and +eVision.EasyDeepLearning.EClassificationDataset.MaxHueOffset. This transformation only works for color images.
|
static |
Maximum rotation angle for data augmentation.
The rotation angle will be between -eVision.EasyDeepLearning.EClassificationDataset.MaxRotationAngle and +eVision.EasyDeepLearning.EClassificationDataset.MaxRotationAngle.
|
static |
\endcond
Maximum saturation gain. Its value must be over or equal to eVision.EasyDeepLearning.EClassificationDataset.MinSaturationGain.
Remarks:
The saturation transformation is performed by multiplying the saturation of each pixel by a value between eVision.EasyDeepLearning.EClassificationDataset.MinSaturationGain and eVision.EasyDeepLearning.EClassificationDataset.MaxSaturationGain.
|
static |
Maximum scaling allowed for data augmentation.
|
static |
Maximum absolute vertical shear.
It is represented as an angle from the horizontal direction. Its value must be between 0 and 90 degrees.
|
static |
Maximum vertical shift for data augmentation.
The vertical shift will be between -eVision.EasyDeepLearning.EClassificationDataset.MaxHorizontalShift and +eVision.EasyDeepLearning.EClassificationDataset.MaxHorizontalShift.
|
static |
Minimum contrast gain.
Its value must be strictly positive and below eVision.EasyDeepLearning.EClassificationDataset.MaxContrastGain.
Remarks:
Contrast transformation is performed by multiplying each mean-centered pixel value by a gain value taken between eVision.EasyDeepLearning.EClassificationDataset.MinContrastGain and eVision.EasyDeepLearning.EClassificationDataset.MaxContrastGain. A contrast transformation does not change the overall brightness of an image.
|
static |
Minimum gamma for gamma correction.
Its value must be strictly positive and below eVision.EasyDeepLearning.EClassificationDataset.MaxGamma.
Remarks:
Gamma correction transformation is performed by raising each normalized pixel value to the power of gamma with gamma taken between eVision.EasyDeepLearning.EClassificationDataset.MinGamma and @Class.MaxGamma`.
|
static |
\endcond
Minimum saturation gain. Its value must be strictly positive.
Remarks:
The saturation transformation is performed by multiplying the saturation of each pixel by a value between eVision.EasyDeepLearning.EClassificationDataset.MinSaturationGain and eVision.EasyDeepLearning.EClassificationDataset.MaxSaturationGain.
|
static |
Minimum scaling allowed for data augmentation.
|
static |
\endcond
The maximum density of the salt and pepper noise.
The salt and pepper noise sets the value of a number of randomly selected (between eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMinimumDensity and eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMaximumDensity) pixels to its minimum or maximum value.
Its value must be between eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMinimumDensity and 1.
Remarks:
This noise is computed after all the other noises.
|
static |
\endcond
The minimum density of the salt and pepper noise.
The salt and pepper noise sets the value of a number of randomly selected (between eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMinimumDensity and eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMaximumDensity) pixels to its minimum or maximum value.
Its value must be between 0 and eVision.EasyDeepLearning.EClassificationDataset.SaltAndPepperNoiseMaximumDensity.
Remarks:
This noise is computed after all the other noises.
|
static |
\endcond
The speckle noise maximum standard deviation.
The speckle noise is a multiplicative noise sampled from a Gamma distribution with a mean of 1 and with its standard deviation between eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMaximumStandardDeviation.
Its value must be strictly higher than eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMinimumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
static |
\endcond
The speckle noise minimum standard deviation.
The speckle noise is a multiplicative noise sampled from a Gamma distribution with a mean of 1 and with its standard deviation between eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMaximumStandardDeviation.
Its value must be strictly positive and lower than eVision.EasyDeepLearning.EClassificationDataset.SpeckleNoiseMaximumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.