how to display variance of an image in command box?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Komal Gaikwad
il 25 Mar 2018
Commentato: Komal Gaikwad
il 25 Mar 2018
median_image=medfilt2(im_n) axes(handles.axes3); imshow(median_image);
%variance% IM= im2double(median_image); V_image = var(IM(:));
Risposta accettata
Image Analyst
il 25 Mar 2018
Get rid of the semicolon and the value will report to the command window:
V_image = var(IM(:))
Beware though that im2double will scale the image to the range 0-1, so your variance will be the variance of that scaled image, not of the original image. If you want the variance of the original image, use double() instead of im2double().
Più risposte (0)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!