When dimensions are different in cnn how to calculate the next dimension

Hi,

If height and width dimensions are same then–
In CNN we calculate the next dimension(if padding is valid) by the formula=> (n-2p-(f-1))/stride ; here n=height=width, f=filter size

I want to know if the dimensions are different say height not equals to width, and we apply no padding then what will be the formula for calculating the next dimensions on applying filter

I would suggest you to look at how formula was derived.

You will get fair idea.