An eVision.EasyDeepLearning.EDataAugmentation object is responsible for storing the data augmentation parameters and generating new transformed images from existing ones. More...
Protected Member Functions | |
| int | _MaxHorizontalShift__getter (self) |
| \cond | |
| _MaxHorizontalShift__setter (self, int value) | |
| Return the maximum horizontal shift allowed. | |
| int | _MaxVerticalShift__getter (self) |
| \cond | |
| _MaxVerticalShift__setter (self, int value) | |
| Return the maximum vertical shift allowed. | |
| float | _MaxRotationAngle__getter (self) |
| \cond | |
| _MaxRotationAngle__setter (self, float value) | |
| Returns the maximum rotation angle allowed. | |
| bool | _EnableVerticalFlip__getter (self) |
| \cond | |
| _EnableVerticalFlip__setter (self, bool value) | |
| Gets whether to use vertically flipped versions of input images. | |
| bool | _EnableHorizontalFlip__getter (self) |
| \cond | |
| _EnableHorizontalFlip__setter (self, bool value) | |
| Gets whether to use horizontally flipped versions of input images. | |
| float | _MinScale__getter (self) |
| \cond | |
| _MinScale__setter (self, float value) | |
| Gets the minimum scaling allowed. | |
| float | _MaxScale__getter (self) |
| \cond | |
| _MaxScale__setter (self, float value) | |
| Gets the maximum scaling allowed. | |
| float | _MaxHorizontalShear__getter (self) |
| \cond | |
| _MaxHorizontalShear__setter (self, float value) | |
| Gets the maximum absolute horizontal shear, represented as an angle from the vertical direction. | |
| float | _MaxVerticalShear__getter (self) |
| \cond | |
| _MaxVerticalShear__setter (self, float value) | |
| Gets the maximum absolute vertical shear, represented as an angle from the horizontal direction. | |
| float | _MaxBrightnessOffset__getter (self) |
| \cond | |
| _MaxBrightnessOffset__setter (self, float value) | |
| Gets the maximum absolute brightness offset. | |
| float | _MaxContrastGain__getter (self) |
| \cond | |
| _MaxContrastGain__setter (self, float value) | |
| Gets the maximum contrast gain. | |
| float | _MinContrastGain__getter (self) |
| \cond | |
| _MinContrastGain__setter (self, float value) | |
| Gets the minimum contrast gain. | |
| float | _MinGamma__getter (self) |
| \cond | |
| _MinGamma__setter (self, float value) | |
| Gets the minimum gamma for gamma correction. | |
| float | _MaxGamma__getter (self) |
| \cond | |
| _MaxGamma__setter (self, float value) | |
| Gets the maximum gamma for gamma correction. | |
| float | _MaxHueOffset__getter (self) |
| \cond | |
| _MaxHueOffset__setter (self, float value) | |
| Gets the maximum absolute hue offset. | |
| float | _MinSaturationGain__getter (self) |
| \cond | |
| _MinSaturationGain__setter (self, float value) | |
| Gets the minimum saturation gain. | |
| float | _MaxSaturationGain__getter (self) |
| \cond | |
| _MaxSaturationGain__setter (self, float value) | |
| Gets the maximum saturation gain. | |
| float | _GaussianNoiseMaximumStandardDeviation__getter (self) |
| \cond | |
| _GaussianNoiseMaximumStandardDeviation__setter (self, float value) | |
| The Gaussian noise maximum standard deviation. | |
| float | _GaussianNoiseMinimumStandardDeviation__getter (self) |
| \cond | |
| _GaussianNoiseMinimumStandardDeviation__setter (self, float value) | |
| The Gaussian noise minimum standard deviation. | |
| float | _SpeckleNoiseMaximumStandardDeviation__getter (self) |
| \cond | |
| _SpeckleNoiseMaximumStandardDeviation__setter (self, float value) | |
| The speckle noise maximum standard deviation. | |
| float | _SpeckleNoiseMinimumStandardDeviation__getter (self) |
| \cond | |
| _SpeckleNoiseMinimumStandardDeviation__setter (self, float value) | |
| The speckle noise minimum standard deviation. | |
| float | _SaltAndPepperNoiseMaximumDensity__getter (self) |
| \cond | |
| _SaltAndPepperNoiseMaximumDensity__setter (self, float value) | |
| The maximum density of the salt and pepper noise. | |
| float | _SaltAndPepperNoiseMinimumDensity__getter (self) |
| \cond | |
| _SaltAndPepperNoiseMinimumDensity__setter (self, float value) | |
| The minimum density of the salt and pepper noise. | |
| int | _StainDisruptionMaxAnchorPoints__getter (self) |
| \cond | |
| _StainDisruptionMaxAnchorPoints__setter (self, int value) | |
| The maximum number of anchor points to use while disrupting the ellipse. | |
| float | _StainDisruptionMaxIntensity__getter (self) |
| \cond | |
| _StainDisruptionMaxIntensity__setter (self, float value) | |
| The maximum offset applied to the coordinates (x,y) of a pixel from the ellipse contour. | |
| int | _StainEllipseMinRadius__getter (self) |
| \cond | |
| _StainEllipseMinRadius__setter (self, int value) | |
| The minimum radius of the ellipse used to produce the stain. | |
| int | _StainEllipseMaxRadius__getter (self) |
| \cond | |
| _StainEllipseMaxRadius__setter (self, int value) | |
| The maximum radius of the ellipse used to produce the stain. | |
| int | _MinStainColor__getter (self) |
| \cond | |
| _MinStainColor__setter (self, int value) | |
| The minimum color value from which to draw a color to fill in the stain (we use a gaussian distribution of with a mean between eVision.EasyDeepLearning.EDataAugmentation.MinStainColor and eVision.EasyDeepLearning.EDataAugmentation.MaxStainColor). | |
| int | _MaxStainColor__getter (self) |
| \cond | |
| _MaxStainColor__setter (self, int value) | |
| The maximum color value from which to draw a color to fill in the stain (we use a gaussian distribution of with a mean between eVision.EasyDeepLearning.EDataAugmentation.MinStainColor and eVision.EasyDeepLearning.EDataAugmentation.MaxStainColor). | |
| int | _StainColorVariation__getter (self) |
| \cond | |
| _StainColorVariation__setter (self, int value) | |
| The variation of the color used to fill in the ellipse (We use an gaussian distribution of standard mean deviation stainColorVariation). | |
| float | _StainInterpolationSiteFactor__getter (self) |
| \cond | |
| _StainInterpolationSiteFactor__setter (self, float value) | |
| The factor to compute the number of interpolation sites to use from the number of anchor points. | |
| float | _StainProbability__getter (self) |
| \cond | |
| _StainProbability__setter (self, float value) | |
| Probability of applying the stain data augmentation (default value: 0, i.e. | |
| int | _StainBlur__getter (self) |
| \cond | |
| _StainBlur__setter (self, int value) | |
| Stain blur. | |
An eVision.EasyDeepLearning.EDataAugmentation object is responsible for storing the data augmentation parameters and generating new transformed images from existing ones.
Deep learning algorithms are not invariant to the location, scale, or rotation of the elements of interest in the image. Thus, if the final application requires the deep learning algorithm to be invariant to those characteristics, the dataset must contain images covering the spectrum of those characteristics.
Data augmentation can be used to avoid capturing in the original dataset the whole spectrum of those characteristics by automatically generating new versions of the images in the dataset that are shifted, scaled or rotated to cover this spectrum.
When generating a new image, the eVision.EasyDeepLearning.EDataAugmentation will randomly pick transformation value within the specified limits.
When using data augmentation, one must carefully chose the spectrum of transformations such that the element of interest are still visible in the image.
Remarks:
License(s): EasyClassify or EasySegment or EasyLocate
| None eVision.EasyDeepLearning.EDataAugmentation.__init__ | ( | self | ) |
Creates an eVision.EasyDeepLearning.EDataAugmentation object.
| None eVision.EasyDeepLearning.EDataAugmentation.__init__ | ( | self, | |
| eVision.EasyDeepLearning.EDataAugmentation | other ) |
Creates a copy of the eVision.EasyDeepLearning.EDataAugmentation object other.
| other | The other eVision.EasyDeepLearning.EDataAugmentation that we will copy into this one. |
|
protected |
\cond
Gets whether to use horizontally flipped versions of input images.
|
protected |
Gets whether to use horizontally flipped versions of input images.
|
protected |
\cond
Gets whether to use vertically flipped versions of input images.
|
protected |
Gets whether to use vertically flipped versions of input images.
|
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.EDataAugmentation.GaussianNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EDataAugmentation.GaussianNoiseMaximumStandardDeviation.(also called the normal distribution).
Its value must be superior or equal to eVision.EasyDeepLearning.EDataAugmentation.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.EDataAugmentation.GaussianNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EDataAugmentation.GaussianNoiseMaximumStandardDeviation.(also called the normal distribution).
Its value must be superior or equal to eVision.EasyDeepLearning.EDataAugmentation.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.EDataAugmentation.GaussianNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EDataAugmentation.GaussianNoiseMaximumStandardDeviation.(also called the normal distribution).
Its value must be between 0 and eVision.EasyDeepLearning.EDataAugmentation.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.EDataAugmentation.GaussianNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EDataAugmentation.GaussianNoiseMaximumStandardDeviation.(also called the normal distribution).
Its value must be between 0 and eVision.EasyDeepLearning.EDataAugmentation.GaussianNoiseMaximumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
protected |
\cond
Gets the maximum absolute brightness offset.
|
protected |
Gets the maximum absolute brightness offset.
|
protected |
\cond
Gets the maximum contrast gain.
Remarks:
Contrast transformation is performed by multiplying each mean-centered pixel value by a gain value taken between eVision.EasyDeepLearning.EDataAugmentation.MinContrastGain and eVision.EasyDeepLearning.EDataAugmentation.MaxContrastGain. A contrast transformation does not change the overall brightness of an image.
|
protected |
Gets the maximum contrast gain.
Remarks:
Contrast transformation is performed by multiplying each mean-centered pixel value by a gain value taken between eVision.EasyDeepLearning.EDataAugmentation.MinContrastGain and eVision.EasyDeepLearning.EDataAugmentation.MaxContrastGain. A contrast transformation does not change the overall brightness of an image.
|
protected |
\cond
Gets the maximum gamma for gamma correction.
Remarks:
Gamma correction transformation is performed by raising each normalized pixel value to the power of gamma with gamma taken between eVision.EasyDeepLearning.EDataAugmentation.MinGamma and eVision.EasyDeepLearning.EDataAugmentation.MaxGamma.
|
protected |
Gets the maximum gamma for gamma correction.
Remarks:
Gamma correction transformation is performed by raising each normalized pixel value to the power of gamma with gamma taken between eVision.EasyDeepLearning.EDataAugmentation.MinGamma and eVision.EasyDeepLearning.EDataAugmentation.MaxGamma.
|
protected |
\cond
Gets the maximum absolute horizontal shear, represented as an angle from the vertical direction.
|
protected |
Gets the maximum absolute horizontal shear, represented as an angle from the vertical direction.
|
protected |
\cond
Return the maximum horizontal shift allowed.
|
protected |
Return the maximum horizontal shift allowed.
|
protected |
\cond
Gets the maximum absolute hue offset.
|
protected |
Gets the maximum absolute hue offset.
|
protected |
\cond
Returns the maximum rotation angle allowed. The unit of the returned angle is in the current angle unit (see eVision.Easy.SetAngleUnit).
|
protected |
Returns the maximum rotation angle allowed.
The unit of the returned angle is in the current angle unit (see eVision.Easy.SetAngleUnit).
|
protected |
\cond
Gets the maximum saturation gain.
|
protected |
Gets the maximum saturation gain.
|
protected |
\cond
Gets the maximum scaling allowed.
|
protected |
Gets the maximum scaling allowed.
|
protected |
\cond
The maximum color value from which to draw a color to fill in the stain (we use a gaussian distribution of with a mean between eVision.EasyDeepLearning.EDataAugmentation.MinStainColor and eVision.EasyDeepLearning.EDataAugmentation.MaxStainColor)
Its value must be bigger than eVision.EasyDeepLearning.EDataAugmentation.MinStainColor.
|
protected |
The maximum color value from which to draw a color to fill in the stain (we use a gaussian distribution of with a mean between eVision.EasyDeepLearning.EDataAugmentation.MinStainColor and eVision.EasyDeepLearning.EDataAugmentation.MaxStainColor).
Its value must be bigger than eVision.EasyDeepLearning.EDataAugmentation.MinStainColor.
|
protected |
\cond
Gets the maximum absolute vertical shear, represented as an angle from the horizontal direction.
|
protected |
Gets the maximum absolute vertical shear, represented as an angle from the horizontal direction.
|
protected |
\cond
Return the maximum vertical shift allowed.
|
protected |
Return the maximum vertical shift allowed.
|
protected |
\cond
Gets the minimum contrast gain.
Remarks:
Contrast transformation is performed by multiplying each mean-centered pixel value by a gain value taken between eVision.EasyDeepLearning.EDataAugmentation.MinContrastGain and eVision.EasyDeepLearning.EDataAugmentation.MaxContrastGain. A contrast transformation does not change the overall brightness of an image.
|
protected |
Gets the minimum contrast gain.
Remarks:
Contrast transformation is performed by multiplying each mean-centered pixel value by a gain value taken between eVision.EasyDeepLearning.EDataAugmentation.MinContrastGain and eVision.EasyDeepLearning.EDataAugmentation.MaxContrastGain. A contrast transformation does not change the overall brightness of an image.
|
protected |
\cond
Gets the minimum gamma for gamma correction.
Remarks:
Gamma correction transformation is performed by raising each normalized pixel value to the power of gamma with gamma taken between eVision.EasyDeepLearning.EDataAugmentation.MinGamma and eVision.EasyDeepLearning.EDataAugmentation.MaxGamma.
|
protected |
Gets the minimum gamma for gamma correction.
Remarks:
Gamma correction transformation is performed by raising each normalized pixel value to the power of gamma with gamma taken between eVision.EasyDeepLearning.EDataAugmentation.MinGamma and eVision.EasyDeepLearning.EDataAugmentation.MaxGamma.
|
protected |
\cond
Gets the minimum saturation gain.
|
protected |
Gets the minimum saturation gain.
|
protected |
\cond
Gets the minimum scaling allowed.
|
protected |
Gets the minimum scaling allowed.
|
protected |
\cond
The minimum color value from which to draw a color to fill in the stain (we use a gaussian distribution of with a mean between eVision.EasyDeepLearning.EDataAugmentation.MinStainColor and eVision.EasyDeepLearning.EDataAugmentation.MaxStainColor)
Its value must be inferior to 255 and eVision.EasyDeepLearning.EDataAugmentation.MaxStainColor.
|
protected |
The minimum color value from which to draw a color to fill in the stain (we use a gaussian distribution of with a mean between eVision.EasyDeepLearning.EDataAugmentation.MinStainColor and eVision.EasyDeepLearning.EDataAugmentation.MaxStainColor).
Its value must be inferior to 255 and eVision.EasyDeepLearning.EDataAugmentation.MaxStainColor.
|
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.EDataAugmentation.SaltAndPepperNoiseMinimumDensity and eVision.EasyDeepLearning.EDataAugmentation.SaltAndPepperNoiseMaximumDensity) pixels to its minimum or maximum value.
Its value must be between eVision.EasyDeepLearning.EDataAugmentation.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.EDataAugmentation.SaltAndPepperNoiseMinimumDensity and eVision.EasyDeepLearning.EDataAugmentation.SaltAndPepperNoiseMaximumDensity) pixels to its minimum or maximum value.
Its value must be between eVision.EasyDeepLearning.EDataAugmentation.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.EDataAugmentation.SaltAndPepperNoiseMinimumDensity and eVision.EasyDeepLearning.EDataAugmentation.SaltAndPepperNoiseMaximumDensity) pixels to its minimum or maximum value.
Its value must be between 0 and eVision.EasyDeepLearning.EDataAugmentation.SaltAndPepperNoiseMinimumDensity.
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.EDataAugmentation.SaltAndPepperNoiseMinimumDensity and eVision.EasyDeepLearning.EDataAugmentation.SaltAndPepperNoiseMaximumDensity) pixels to its minimum or maximum value.
Its value must be between 0 and eVision.EasyDeepLearning.EDataAugmentation.SaltAndPepperNoiseMinimumDensity.
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 of deviation between eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMaximumStandardDeviation.
Its value must be strictly higher than eVision.EasyDeepLearning.EDataAugmentation.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 of deviation between eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMaximumStandardDeviation.
Its value must be strictly higher than eVision.EasyDeepLearning.EDataAugmentation.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 of deviation between eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMaximumStandardDeviation.
Its value must be strictly positive and lower than eVision.EasyDeepLearning.EDataAugmentation.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 of deviation between eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMaximumStandardDeviation.
Its value must be strictly positive and lower than eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMaximumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
protected |
\cond
Stain blur.
The stain blur is the half kernel size of a Gaussian filter that is applied on the stain to smooth its edges and therefore the transition between the original image and the stain.
|
protected |
Stain blur.
The stain blur is the half kernel size of a Gaussian filter that is applied on the stain to smooth its edges and therefore the transition between the original image and the stain.
|
protected |
\cond
The variation of the color used to fill in the ellipse (We use an gaussian distribution of standard mean deviation stainColorVariation).
|
protected |
The variation of the color used to fill in the ellipse (We use an gaussian distribution of standard mean deviation stainColorVariation).
|
protected |
\cond
The maximum number of anchor points to use while disrupting the ellipse.
|
protected |
The maximum number of anchor points to use while disrupting the ellipse.
|
protected |
\cond
The maximum offset applied to the coordinates (x,y) of a pixel from the ellipse contour.
|
protected |
The maximum offset applied to the coordinates (x,y) of a pixel from the ellipse contour.
|
protected |
\cond
The maximum radius of the ellipse used to produce the stain.
Its value must be superior to eVision.EasyDeepLearning.EDataAugmentation.StainEllipseMinRadius.
|
protected |
The maximum radius of the ellipse used to produce the stain.
Its value must be superior to eVision.EasyDeepLearning.EDataAugmentation.StainEllipseMinRadius.
|
protected |
\cond
The minimum radius of the ellipse used to produce the stain.
Its value must be inferior to eVision.EasyDeepLearning.EDataAugmentation.StainEllipseMaxRadius.
|
protected |
The minimum radius of the ellipse used to produce the stain.
Its value must be inferior to eVision.EasyDeepLearning.EDataAugmentation.StainEllipseMaxRadius.
|
protected |
\cond
The factor to compute the number of interpolation sites to use from the number of anchor points.
|
protected |
The factor to compute the number of interpolation sites to use from the number of anchor points.
|
protected |
\cond
Probability of applying the stain data augmentation (default value: 0, i.e. no stain).
|
protected |
Probability of applying the stain data augmentation (default value: 0, i.e.
no stain).
| None eVision.EasyDeepLearning.EDataAugmentation.CopyTo | ( | self, | |
| eVision.EasyDeepLearning.EDataAugmentation | other ) |
Copies itself to the eVision.EasyDeepLearning.EDataAugmentation object other.
| other | The other eVision.EasyDeepLearning.EDataAugmentation that we will copy into this one. |
| eVision.EBaseROI | None eVision.EasyDeepLearning.EDataAugmentation.Generate | ( | self, | |
| eVision.EBaseROI | None | img ) |
Generates a new image from a generic eVision.EBaseROI image.
The caller is responsible for calling freeing the memory of the returned image by calling delete on the image.
Remarks:
If the data augmentation fails, the method will throw an exception.
| img | The image to transform. |
| eVision.EBaseROI | None eVision.EasyDeepLearning.EDataAugmentation.Generate | ( | self, | |
| eVision.EBaseROI | None | img, | ||
| eVision.EasyDeepLearning.EDLDataAugmentationType | type ) |
Generates a new image from a generic eVision.EBaseROI image.
The caller is responsible for calling freeing the memory of the returned image by calling delete on the image.
Remarks:
If the data augmentation fails, the method will throw an exception.
| img | The image to transform. |
| type | The type of transformation to generate. |
| None eVision.EasyDeepLearning.EDataAugmentation.Generate | ( | self, | |
| eVision.EROIBW16 | source, | ||
| eVision.EROIBW16 | dest ) |
Generates a new image.
Remarks:
If the data augmentation fails, the method will throw an exception.
| source | The image to transform. |
| dest | The transformed image. |
| None eVision.EasyDeepLearning.EDataAugmentation.Generate | ( | self, | |
| eVision.EROIBW16 | source, | ||
| eVision.EROIBW16 | dest, | ||
| eVision.EasyDeepLearning.EDLDataAugmentationType | type ) |
Generates a new image.
Remarks:
If the data augmentation fails, the method will throw an exception.
| source | The image to transform. |
| dest | The transformed image. |
| type | The type of transformation to generate. |
| None eVision.EasyDeepLearning.EDataAugmentation.Generate | ( | self, | |
| eVision.EROIBW8 | source, | ||
| eVision.EROIBW8 | dest ) |
Generates a new image.
Remarks:
If the data augmentation fails, the method will throw an exception.
| source | The image to transform. |
| dest | The transformed image. |
| None eVision.EasyDeepLearning.EDataAugmentation.Generate | ( | self, | |
| eVision.EROIBW8 | source, | ||
| eVision.EROIBW8 | dest, | ||
| eVision.EasyDeepLearning.EDLDataAugmentationType | type ) |
Generates a new image.
Remarks:
If the data augmentation fails, the method will throw an exception.
| source | The image to transform. |
| dest | The transformed image. |
| type | The type of transformation to generate. |
| None eVision.EasyDeepLearning.EDataAugmentation.Generate | ( | self, | |
| eVision.EROIC24 | source, | ||
| eVision.EROIC24 | dest ) |
Generates a new image.
Remarks:
If the data augmentation fails, the method will throw an exception.
| source | The image to transform. |
| dest | The transformed image. |
| None eVision.EasyDeepLearning.EDataAugmentation.Generate | ( | self, | |
| eVision.EROIC24 | source, | ||
| eVision.EROIC24 | dest, | ||
| eVision.EasyDeepLearning.EDLDataAugmentationType | type ) |
Generates a new image.
Remarks:
If the data augmentation fails, the method will throw an exception.
| source | The image to transform. |
| dest | The transformed image. |
| type | The type of transformation to generate. |
| bool eVision.EasyDeepLearning.EDataAugmentation.HasDataAugmentations | ( | self | ) |
Whether the eVision.EasyDeepLearning.EDataAugmentation object contains augmentations.
| None eVision.EasyDeepLearning.EDataAugmentation.Load | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Loads an eVision.EasyDeepLearning.EDataAugmentation object.
The given ESerializer must have been created for reading.
| serializer | The serializer. |
| None eVision.EasyDeepLearning.EDataAugmentation.Load | ( | self, | |
| str | path ) |
Loads an eVision.EasyDeepLearning.EDataAugmentation object.
The given ESerializer must have been created for reading.
| path | The file path. |
| None eVision.EasyDeepLearning.EDataAugmentation.Save | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Saves an eVision.EasyDeepLearning.EDataAugmentation object.
The given ESerializer must have been created for writing.
| serializer | The eVision.ESerializer object that is written to. |
| None eVision.EasyDeepLearning.EDataAugmentation.Save | ( | self, | |
| str | path ) |
Saves an eVision.EasyDeepLearning.EDataAugmentation object.
The given ESerializer must have been created for writing.
| path | The file path. |
|
static |
\endcond
Gets whether to use horizontally flipped versions of input images.
|
static |
\endcond
Gets whether to use vertically flipped versions of input images.
|
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.EDataAugmentation.GaussianNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EDataAugmentation.GaussianNoiseMaximumStandardDeviation.(also called the normal distribution).
Its value must be superior or equal to eVision.EasyDeepLearning.EDataAugmentation.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.EDataAugmentation.GaussianNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EDataAugmentation.GaussianNoiseMaximumStandardDeviation.(also called the normal distribution).
Its value must be between 0 and eVision.EasyDeepLearning.EDataAugmentation.GaussianNoiseMaximumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
static |
\endcond
Gets the maximum absolute brightness offset.
|
static |
\endcond
Gets the maximum contrast gain.
Remarks:
Contrast transformation is performed by multiplying each mean-centered pixel value by a gain value taken between eVision.EasyDeepLearning.EDataAugmentation.MinContrastGain and eVision.EasyDeepLearning.EDataAugmentation.MaxContrastGain. A contrast transformation does not change the overall brightness of an image.
|
static |
\endcond
Gets the maximum gamma for gamma correction.
Remarks:
Gamma correction transformation is performed by raising each normalized pixel value to the power of gamma with gamma taken between eVision.EasyDeepLearning.EDataAugmentation.MinGamma and eVision.EasyDeepLearning.EDataAugmentation.MaxGamma.
|
static |
\endcond
Gets the maximum absolute horizontal shear, represented as an angle from the vertical direction.
|
static |
\endcond
Return the maximum horizontal shift allowed.
|
static |
\endcond
Gets the maximum absolute hue offset.
|
static |
\endcond
Returns the maximum rotation angle allowed. The unit of the returned angle is in the current angle unit (see eVision.Easy.SetAngleUnit).
|
static |
\endcond
Gets the maximum saturation gain.
|
static |
\endcond
Gets the maximum scaling allowed.
|
static |
\endcond
The maximum color value from which to draw a color to fill in the stain (we use a gaussian distribution of with a mean between eVision.EasyDeepLearning.EDataAugmentation.MinStainColor and eVision.EasyDeepLearning.EDataAugmentation.MaxStainColor)
Its value must be bigger than eVision.EasyDeepLearning.EDataAugmentation.MinStainColor.
|
static |
\endcond
Gets the maximum absolute vertical shear, represented as an angle from the horizontal direction.
|
static |
\endcond
Return the maximum vertical shift allowed.
|
static |
\endcond
Gets the minimum contrast gain.
Remarks:
Contrast transformation is performed by multiplying each mean-centered pixel value by a gain value taken between eVision.EasyDeepLearning.EDataAugmentation.MinContrastGain and eVision.EasyDeepLearning.EDataAugmentation.MaxContrastGain. A contrast transformation does not change the overall brightness of an image.
|
static |
\endcond
Gets the minimum gamma for gamma correction.
Remarks:
Gamma correction transformation is performed by raising each normalized pixel value to the power of gamma with gamma taken between eVision.EasyDeepLearning.EDataAugmentation.MinGamma and eVision.EasyDeepLearning.EDataAugmentation.MaxGamma.
|
static |
\endcond
Gets the minimum saturation gain.
|
static |
\endcond
Gets the minimum scaling allowed.
|
static |
\endcond
The minimum color value from which to draw a color to fill in the stain (we use a gaussian distribution of with a mean between eVision.EasyDeepLearning.EDataAugmentation.MinStainColor and eVision.EasyDeepLearning.EDataAugmentation.MaxStainColor)
Its value must be inferior to 255 and eVision.EasyDeepLearning.EDataAugmentation.MaxStainColor.
|
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.EDataAugmentation.SaltAndPepperNoiseMinimumDensity and eVision.EasyDeepLearning.EDataAugmentation.SaltAndPepperNoiseMaximumDensity) pixels to its minimum or maximum value.
Its value must be between eVision.EasyDeepLearning.EDataAugmentation.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.EDataAugmentation.SaltAndPepperNoiseMinimumDensity and eVision.EasyDeepLearning.EDataAugmentation.SaltAndPepperNoiseMaximumDensity) pixels to its minimum or maximum value.
Its value must be between 0 and eVision.EasyDeepLearning.EDataAugmentation.SaltAndPepperNoiseMinimumDensity.
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 of deviation between eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMaximumStandardDeviation.
Its value must be strictly higher than eVision.EasyDeepLearning.EDataAugmentation.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 of deviation between eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMinimumStandardDeviation and eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMaximumStandardDeviation.
Its value must be strictly positive and lower than eVision.EasyDeepLearning.EDataAugmentation.SpeckleNoiseMaximumStandardDeviation.
Remarks:
This noise is computed before the salt and paper noise.
|
static |
\endcond
Stain blur.
The stain blur is the half kernel size of a Gaussian filter that is applied on the stain to smooth its edges and therefore the transition between the original image and the stain.
|
static |
\endcond
The variation of the color used to fill in the ellipse (We use an gaussian distribution of standard mean deviation stainColorVariation).
|
static |
\endcond
The maximum number of anchor points to use while disrupting the ellipse.
|
static |
\endcond
The maximum offset applied to the coordinates (x,y) of a pixel from the ellipse contour.
|
static |
\endcond
The maximum radius of the ellipse used to produce the stain.
Its value must be superior to eVision.EasyDeepLearning.EDataAugmentation.StainEllipseMinRadius.
|
static |
\endcond
The minimum radius of the ellipse used to produce the stain.
Its value must be inferior to eVision.EasyDeepLearning.EDataAugmentation.StainEllipseMaxRadius.
|
static |
\endcond
The factor to compute the number of interpolation sites to use from the number of anchor points.
|
static |
\endcond
Probability of applying the stain data augmentation (default value: 0, i.e. no stain).