[問題] 影像處理it must be two-dimensional?已回收
小妹剛開始接觸影像處理就遇到下列ERROR 墾請各位高手協助 非常感恩呀
1. imshow(r),figure,imshow(r>100)
??? Error using ==> imageDisplayValidateParams>validateCData at 119
If input is logical (binary), it must be two-dimensional.
(二維?圖片要轉成二維嗎?
Error in ==> imageDisplayValidateParams at 31
common_args.CData = validateCData(common_args.CData,image_type);
2.
>> ic=imread('I2.tif');
>> px=[-1 0 1; -1 0 1;-1 0 1];
>> icx=filter2(px,ic);
(Filter2 有錯嗎?我是照書上打的)
??? Undefined function or method 'conv2' for input arguments of type
'double' and attributes 'full 3d real'.
Error in ==> filter2 at 71
y = round(conv2(hcol, hrow, x, shape));
3.
>> BW=edge(I,'canny',3,2);
??? Undefined function or variable 'I'.
只要遇到輸入edge(...)就會有問題 我想應該是跟1.問題一樣要轉換檔嗎?
感恩
--
你只剩一個輪廓 總不預警出沒 淡淡的像微風 一吹心頭的季節就換了
你就像讀過的詩 記憶中的每一個字 變成心裡面的一種固執 讓眼睛隨時會潮濕
要我誠實
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.115.21.71
※ 編輯: ccchain 來自: 59.115.21.71 (08/28 21:46)
推
08/30 21:51, , 1F
08/30 21:51, 1F
→
08/30 21:52, , 2F
08/30 21:52, 2F