Alternative to cv2.warpPerspective
@AleksandrPanov ya está trabajando en esto.
Desde el 8/10/2021.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Expected behaviour
I use OpenCV to register bio-medical images, but these images are really big.
I'm able to extract features and compute the homography H, and then I use cv2.warpPerspective to compute the final image.
warped_img = cv2.warpPerspective(image, H, (width, height), borderMode=cv2.BORDER_CONSTANT, borderValue=0)
Actual behaviour
But when width or height is bigger than 32767, then I get the following error.
cv2.error: OpenCV(4.5.1) /tmp/pip-req-build-s8zh4qlk/opencv/modules/imgproc/src/imgwarp.cpp:1724: error: (-215:Assertion failed) dst.cols < SHRT_MAX && dst.rows < SHRT_MAX && src.cols < SHRT_MAX && src.rows < SHRT_MAX in function 'remap'
I took a look online, and I found out that is a hard limitation because of the short encoding used to improve warpPerspective .
Is there a workaround to lift such limitation?
If no, is there a solution using another library to replace cv2.warpPerspective?
- Lenguaje dominante
- Python
- Estrellas
- 5.4k
- Forks
- 1k
- Merge medio
- 22 h 17 min
- PR fusionados (30 d)
- 3
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de opencv/opencv-python
-
[DOC] README file Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
opencv/opencv-python#1217 · 3 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
opencv/opencv-python#1165 · 2 comentarios · 1 reacción ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
opencv/opencv-python#1273 · 1 comentario ·
-
FFMPEG v8.1.1 vulnerabilities Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
opencv/opencv-python#1272 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
opencv/opencv-python#1268 · 1 comentario ·
Todos los issues de opencv/opencv-python
Issues similares
-
essnmx good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
-
[Feature] 奇物选择添加优先级 Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
syfoud/Simulated_Scepter#174 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Giskard-AI/giskard-oss#2840 · 1 comentario ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Abiertoarea: repo bug perceived difficulty: 2
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
yeti-platform/yeti#1380 ·