Research Article
Gender and Handedness Prediction from Offline Handwriting Using Convolutional Neural Networks
Pseudocode 1
Pseudocode of successive random transformations applied on training images.
| algorithm generate_modify_image : | | # affine inclination | | = randomInclination in | | = affine_rotation | | # positive scaling | | vs = randomVerticalScaling in | | hs = randomHorizontalScaling in | | = increasing_scaling (, vs, hs) | | # binary morphological filter with a structuring element | | = randomMorphologyOperation in | | = morphology_filter | | # produce 30 × 100 rescaled image using bilinear interpolation | | = normalize_size (, “bilinear”) # input training image for the CNN | | return |
|