MATLAB 도움말 센터
2-D convolution for HVX
Since R2026a
conv2DOut = QHVXIPCV.conv2d(Input,Mask)
conv2DOut = QHVXIPCV.conv2d(Input,Mask) performs a 2-D convolution of the input matrix Input with the structuring element Mask for Hexagon® Vector eXtension.
conv2DOut
Input
Mask
example
collapse all
This example uses:
Create a unit8 matrix. Specify the width of the input matrix as a multiple of 128.
unit8
H = 128; W = 128; A = uint8(rand(H, W));
Create the mask with kernel sizes 3, 5, and 7.
mask3x3 = int8([ 1 2 1;0 0 0;-1 -2 -1 ]); mask5x5 = int8([1 2 3 2 1;... 2 4 5 4 2;... 3 5 6 5 3;... 2 4 5 4 2;... 1 2 3 2 1]); mask7x7 = int8([0 0 1 2 1 0 0;... 0 1 2 3 2 1 0;... 1 2 3 4 3 2 1;... 2 3 4 5 4 3 2;... 1 2 3 4 3 2 1;... 0 1 2 3 2 1 0;... 0 0 0 1 2 1 0]);
Perform convolution of the input matrix and the masks.
out3 = QHVXIPCV.conv2d(A, mask3x3); out5 = QHVXIPCV.conv2d(A, mask5x5); out7 = QHVXIPCV.conv2d(A, mask7x7);
2-D input, specified as a matrix whose width is a multiple of 128. The height of the matrix must be greater than or equal to the mask size.
Data Types: uint8
uint8
Structuring element, specified as a 2-D square matrix of size 3, 5, or 7.
Data Types: int8
int8
Convolution output of the input matrix and the mask, returned as a matrix.
Introduced in R2026a
HVX Conv2D
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의