System Information
OpenCV python version: 4.6.0.66
Operating System / Platform: Ubuntu 20.04
Python version: 3.10.8
CPU Arch: aarch64
CPU Model: Neoverse-N1
Detailed description
When I try to run cv2.morphologyEx on a image with width 1 and kernel with width > 1, I get a segmentation fault error.
This happens specifically on aarch64 machines (I tried on a x86_64 and it worked fine)
Steps to reproduce
import cv2
import numpy as np
img = np.zeros(( 4, 1 ), np.uint8)
kernel = cv2.getStructuringElement(cv2.MORPH_RECT, ( 4, 4 ))
cv2.morphologyEx(img, cv2.MORPH_DILATE, kernel)
Issue submission checklist
System Information
OpenCV python version: 4.6.0.66
Operating System / Platform: Ubuntu 20.04
Python version: 3.10.8
CPU Arch: aarch64
CPU Model: Neoverse-N1
Detailed description
When I try to run
cv2.morphologyExon a image with width1and kernel with width >1, I get a segmentation fault error.This happens specifically on aarch64 machines (I tried on a x86_64 and it worked fine)
Steps to reproduce
Issue submission checklist