Messagebox warning in matlab
Mostra commenti meno recenti
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);
Risposta accettata
Più risposte (1)
Image Analyst
il 25 Set 2020
Get rid of the message and use imshow():
imshow(NCC, []);
Categorie
Scopri di più su Template Matching in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!