In order to amplify the data set, 2 ways are used to amplify the data.
1. Data enhancement processing using Keras
2. Data enhancement processing using Skimage
Keras includes processing, there is featurewise visual image will be slightly dimmed, samplewise visual image will become class X-ray image form, ZCA processing visual image will become gray image, rotation range randomly rotated image, horizontal translation, vertical translation, Error-cutting transformation, image scaling, picture of the overall color transformation, horizontal flip operation, up and down operation, Rescale.
The problem is that the image transformation is random, that is, the image may not be transformed.
Skimage data enhancement processing, with resize, gray,rescale,noise,flip,rotate, shift, Zoom,gaussian ZOOM,SHEAR,CONTRAST,CHANNELSHIFT,PCA, Polar
At present polar coordinates transform polar, there are some problems, that is, after the conversion only grayscale, to be solved.
See the following address for the relevant code. For reference.
GitHub Address: Https://github.com/renwoxing2016/data-augmentation