Messagebox warning in matlab
Afficher commentaires plus anciens
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);
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 25 Sep 2020
Get rid of the message and use imshow():
imshow(NCC, []);
Catégories
En savoir plus sur Template Matching dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!