Messagebox warning in matlab
Mostrar comentarios más antiguos
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);
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 25 de Sept. de 2020
Get rid of the message and use imshow():
imshow(NCC, []);
Categorías
Más información sobre Template Matching en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!