Regarding dimension of the image

If a image is grey scale and have dimension (100,50) then 100 is the length of the image and 50 is the breadth of the image?? well i was watching video and prateek bhaiya took width=img.shape[0] and length=img.shape[1] how??

Hey @amankharb, you are right , the first dimension is the height and the second dimension is the width of the image. Can you tell me in which video Prateek bhaiya took vice-versa.

Only then will I be able to find the reason behind it.

Thanks :slight_smile:

In Implementing Convolution,Understanding Filters

Hey @amankharb, I believe sir has a square image. And working with a square image means height and width both are same.

Hope this helps !
Happy Learning :slight_smile: