function data = augmentDataForConcreteClassification(data)
% The augmentDataForConcreteClassification function randomly applies 90
% degree rotation and horizontal and vertical reflection to an input image.
%
% Copyright 2021 The MathWorks, Inc.

img = data{1};

% Randomized horizontal reflection
if rand > 0.5
    img = fliplr(img);
end

% Randomixed vertical reflection
if rand > 0.5
    img = flipud(img);
end

% Randomized rotation by 90 degrees
img = rot90(img,randi(4)-1);
data{1} = img;
end