can't understand this statement

5 ビュー (過去 30 日間)
Terry McGinnis
Terry McGinnis 2015 年 6 月 10 日
コメント済み: Terry McGinnis 2015 年 6 月 10 日
while impliminting the code for bilateral filtering from link
i took the input for a small sized image.but the cartoon function gives the following error
??? Error using ==> cartoon at 43 Input image A must be a double precision matrix of size NxMx3 on the closed interval [0,1].
how should i change the code to accommodate this image whose dimensions are 24*18 pixels
Thanks in advance :]

採用された回答

Walter Roberson
Walter Roberson 2015 年 6 月 10 日
T = im2double(YourMatrix) ;
T2 = repmat(T, 1, 1, 3);
cartoon(T2)
  2 件のコメント
Terry McGinnis
Terry McGinnis 2015 年 6 月 10 日
i tried this with the input image
img3 = double(imread('Perovskite+QDs+VK5+Diffusion+on+Glass+VHigh+S2N+ideal+of+SPT_page9.tiff'))/255; T = im2double(img3) ; T2 = repmat(T, 1, 1, 3); cartoon(T2)
but am getting the following error
??? Error using ==> repmat Too many input arguments.
Error in ==> runDemo at 21 T2 = repmat(T, 1, 1, 3);
Terry McGinnis
Terry McGinnis 2015 年 6 月 10 日
ok thanks .it was a syntax error(jus missin the square brackets)
T2 = repmat(T, [1, 1, 3]);

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by