There are four layers in CNN:
- Convolutional Layer - the layer that performs a convolutional operation, creating several smaller picture windows to go over the data.
- ReLU Layer - it brings non-linearity to the network and converts all the negative pixels to zero. The output is a rectified feature map.
- Pooling Layer - pooling is a down-sampling operation that reduces the dimensionality of the feature map.
- Fully Connected Layer - this layer recognizes and classifies the objects in the image.