Messagebox warning in matlab
古いコメントを表示
hello everyone,
I am running this code and getting warning that text is too long for a messagebox. I set breakpoints and at message it is giving different values and showing messagebox without text. What am I doing wrong here?
code is given below;
close all
clc
workspace;
im = imread('lena.bmp')
Image1= im;
im2 = imread('lena2.bmp')
Image2= im2;
NCC = normxcorr2(Image1,Image2);
message = sprintf('The normalized cross correlation is %.2f.', NCC);
msgbox(message);
採用された回答
その他の回答 (1 件)
Image Analyst
2020 年 9 月 25 日
Get rid of the message and use imshow():
imshow(NCC, []);
カテゴリ
ヘルプ センター および File Exchange で Template Matching についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!