For example we have 2 matrices with 600X650 and 600X650 dimensions. We need to calculate the overlap area from top left corner to bottom right corner and second matrix from the opposite direction while one matrix move diagonally on the top the another.

Matrices with same direction it easy. Just added 1 step to i and j index for the first matrix and decrease 1 step for the another matrix to get diagonal transformation. Unfortunately, this method does not work when width and high is not same.

I need Matlab code can solve this issue.

Thanks

More Mohammad Alnagdawi's questions See All
Similar questions and discussions