Fastest way to compute distance between patches

2 views (last 30 days)
Hi, for each pixel(x,y) of a given image: two squared patches P1, P2 on each side(left and right) are considered. Then, i have to compute the distance between each symetric elements of P1 and P2. I have implemented this but in a naïve way, so it is really very slow. I want to do it in a fast way.
Any help would be appreciated.

Answers (1)

Walter Roberson
Walter Roberson on 13 Jun 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!