How to convolute an image .bmp (335x758 uint8) with a vector [1 0 -1]?

2 ビュー (過去 30 日間)
Guillem Puig Comerma
Guillem Puig Comerma 2018 年 3 月 19 日
回答済み: Abhishek Ballaney 2018 年 3 月 20 日
%% 3.1 Gradient Computation I = imread('car1.bmp'); imshow(I) Dx = [-1 0 1]; Dy = transpose([-1 0 1]); Ix = conv(I,Dx); Iy = conv(I,Dy); G = sqrt(Ix^2+Iy^2); %orientation teta teta = arctan(Iy/Ix); imshow(Ix) imshow(Iy) imshow(G)

回答 (1 件)

Abhishek Ballaney
Abhishek Ballaney 2018 年 3 月 20 日
https://in.mathworks.com/help/matlab/ref/conv2.html

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by