Filter löschen
Filter löschen

how to display variance of an image in command box?

1 Ansicht (letzte 30 Tage)
Komal Gaikwad
Komal Gaikwad am 25 Mär. 2018
Kommentiert: Komal Gaikwad am 25 Mär. 2018
median_image=medfilt2(im_n) axes(handles.axes3); imshow(median_image);
%variance% IM= im2double(median_image); V_image = var(IM(:));

Akzeptierte Antwort

Image Analyst
Image Analyst am 25 Mär. 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().
  1 Kommentar
Komal Gaikwad
Komal Gaikwad am 25 Mär. 2018
ok sir thank u so much,also i have to compare two images one from median filter and other from wiener filter..how to compare them using variance or by using some other parameters

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by