CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 00:42:47 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/opencv/opencv.git
etag: W/"b60badfe058dfaa65fb37b9e86e77893"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=AgQ5q2QvHOucpZfihi4aQTU0%2BnleUWWVoDRLm%2Fqt%2FgH%2FOyGL2Myv3qGE2AUQf0PAlGf%2BwkE5xfv9GfbsdtrX%2FzGFthNLF1bxCnw3HrrRrBjoueK5HYELI%2FBHh4LvcmkzoCTRom215ungD6nFLLoijsROOxC4g4Hk%2FxYiJyr%2Fn7hwyorWfNTvTDIWlo0TGih4E%2B3Fu4OdQnyQqZ%2BkZxdPkcpx4wKjglZVoGie2gm4yXH8CYkpQFEF4o%2B4iRh%2BYEFBq3FJtHmI5H19kbERxulEMw%3D%3D--zQgTgNOM2ZoGNi8u--3nMNTIgS8yGR3Z5iQlyJ1Q%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1036588185.1753231366; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 00:42:46 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 00:42:46 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: DCB0:2DEF93:20AF67:2D8D2D:68803006
Merge pull request #24621 from chacha21:remap_relative · opencv/opencv@5e5a035 · GitHub
Copy file name to clipboardExpand all lines: modules/imgproc/include/opencv2/imgproc.hpp
Copy file name to clipboardExpand all lines: modules/imgproc/include/opencv2/imgproc/types_c.h
Copy file name to clipboardExpand all lines: modules/imgproc/perf/perf_warp.cpp
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
Commit 5e5a035
authored
Merge pull request #24621 from chacha21:remap_relative
First proposal of cv::remap with relative displacement field (#24603) #24621
Implements #24603
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.
This PR implements the feature as an experimental option, through the optional flag WARP_RELATIVE_MAP than can be ORed to the interpolation mode.
Since the xy maps might be const, there is no attempt to add the coordinate offset to those maps, and everything is postponed on-the-fly to the very last coordinate computation before fetching `src`. Interestingly, this let `cv::convertMaps()` unchanged since the fractional part of interpolation does not care of the integer coordinate offset.
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [X] I agree to contribute to the project under Apache 2 License.
- [X] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [X] The PR is proposed to the proper branch
- [X] There is a reference to the original bug report and related work
- [X] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake1 parent 5aa5c39 commit 5e5a035Copy full SHA for 5e5a035
File tree
Expand file treeCollapse file tree
7 files changed
+376
-81
lines changedFilter options
- modules/imgproc
- include/opencv2
- imgproc
- perf
- src
- opencl
- test
- ocl
Expand file treeCollapse file tree
7 files changed
+376
-81
lines changedmodules/imgproc/include/opencv2/imgproc.hpp
Copy file name to clipboardExpand all lines: modules/imgproc/include/opencv2/imgproc.hpp+6-2Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
275 | 275 |
| |
276 | 276 |
| |
277 | 277 |
| |
278 |
| - | |
| 278 | + | |
| 279 | + | |
279 | 280 |
| |
280 | 281 |
| |
281 | 282 |
| |
| |||
2490 | 2491 |
| |
2491 | 2492 |
| |
2492 | 2493 |
| |
| 2494 | + | |
2493 | 2495 |
| |
2494 | 2496 |
| |
2495 | 2497 |
| |
| |||
2509 | 2511 |
| |
2510 | 2512 |
| |
2511 | 2513 |
| |
2512 |
| - | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
2513 | 2517 |
| |
2514 | 2518 |
| |
2515 | 2519 |
| |
|
modules/imgproc/include/opencv2/imgproc/types_c.h
Copy file name to clipboardExpand all lines: modules/imgproc/include/opencv2/imgproc/types_c.h+3-2Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
376 | 376 |
| |
377 | 377 |
| |
378 | 378 |
| |
379 |
| - | |
380 |
| - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
381 | 382 |
| |
382 | 383 |
| |
383 | 384 |
| |
|
modules/imgproc/perf/perf_warp.cpp
Copy file name to clipboardExpand all lines: modules/imgproc/perf/perf_warp.cpp+12-5Lines changed: 12 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| 12 | + | |
12 | 13 |
| |
13 | 14 |
| |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
17 |
| - | |
| 18 | + | |
18 | 19 |
| |
19 |
| - | |
| 20 | + | |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
| |||
204 | 205 |
| |
205 | 206 |
| |
206 | 207 |
| |
207 |
| - | |
| 208 | + | |
208 | 209 |
| |
209 | 210 |
| |
210 | 211 |
| |
| |||
224 | 225 |
| |
225 | 226 |
| |
226 | 227 |
| |
227 |
| - | |
| 228 | + | |
228 | 229 |
| |
229 | 230 |
| |
230 | 231 |
| |
| |||
234 | 235 |
| |
235 | 236 |
| |
236 | 237 |
| |
237 |
| - | |
| 238 | + | |
238 | 239 |
| |
239 | 240 |
| |
240 | 241 |
| |
| |||
267 | 268 |
| |
268 | 269 |
| |
269 | 270 |
| |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
270 | 277 |
| |
271 | 278 |
| |
272 | 279 |
| |
|
You can’t perform that action at this time.
0 commit comments