フィルターのクリア

am getting an error on filter function using this image called _ *sweets.png*_

2 ビュー (過去 30 日間)
bavani marimuthu
bavani marimuthu 2018 年 1 月 18 日
回答済み: Rik 2018 年 1 月 18 日
am getting error on using this image called _ sweets.png_ if true % code
J =filter2(fspecial('sobel'),I); end
Error:
Undefined function 'conv2' for input arguments of type 'double' and attributes 'full 3d real'.
Error in filter2 (line 59) y = conv2(hcol, hrow, x, shape);
Error in last (line 15) J=filter2(fspecial('sobel'),I); end

回答 (1 件)

Rik
Rik 2018 年 1 月 18 日
In Matlab, a color image is 3D, the third dimension being the color channels. You need to convert it to a grayscale image (e.g. with rgb2gray).

カテゴリ

Help Center および File Exchange3-D Volumetric Image Processing についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by