Skip to content

remap with maps as vectors rather than coordinates. #24603

@chacha21

Description

@chacha21

Describe the feature and motivation

Currently, remap() is applied as dst(x, y) <- src(mapX(x, y), mapY(x, y))
It means that the maps must be filled with absolute coordinates.

However, if one wants to remap something according to a displacement field ("warp"), the operation should be
dst(x, y) <- src(x+displacementX(x, y), y+displacementY(x, y))

It is trivial to build a mapping from a displacement field, but it is an undesirable overhead for CPU and memory.

Could remap() support a flag to optionally understand the mapping as a displacement field ?

Of course, it impacts a lot of code (IPP/OCL/HAL/cuda implementations)

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions