R
R
RomirosR2020-10-16 22:07:01
Algorithms
RomirosR, 2020-10-16 22:07:01

How to find all points that are equidistant from the data using Manhattan distance?

Hello, let's get down to business.

Manhattan distance formula: abs(x1 - x2) + abs(y1 - y2), where x1, y1, x2, y2 are the coordinates of the points between which the distance is located. abs - function for obtaining a number modulo

Given a limited two-dimensional space and the coordinates of several points.
Task:
Find all points that are equidistant from the data using Manhattan distance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
U235U235, 2020-10-16
@RomirosR

This is called distance transformation. In Matlab, this is the function bwdist(bw_img,'cityblock');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question