S
S
Sergey2020-01-31 17:23:46
Programming
Sergey, 2020-01-31 17:23:46

What data structure to choose for the watershed?

Hello,
in the watershed and in many other image processing tasks, the task is to compare the value of a pixel with its neighborhood once. A quick search brought me only a naive solution: we go through the array, at each iteration of the inner loop we form a neighborhood, we compare. Can you suggest solutions with fewer comparisons and more frequent cache hits?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2020-01-31
@xmoonlight

A ray from a pixel to a given radius rotated by 3 unequal acyclic angles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question