How calculate the feature/activation map size on a neural network?

I have a image that goes into a neural network and each time it passes through the feature/activation map changes its size. Can you explain how they get the feature map size after applying a convolution layer and after a Max Pooling?

Here is a neural network for example:

Diogo BotoMath and Physics TutorAsked:
Who is Participating?
All Courses

From novice to tech pro — start learning today.