MATLAB Answers

shaira ain

how to calculate the accuracy of an image and display it in bar graph?

Asked by shaira ain
on 7 Dec 2012

Example: display bar graph that show accuracy of the original images and also contrast image.

Thank you

i'm very appreciate for your help




No products are associated with this question.

1 Answer

Answer by Image Analyst
on 7 Dec 2012
 Accepted answer

To know the accuracy of an image, or of anything, you need to know the absolute true value. Do you know that?

I don't know what you mean by "contrast image". Do you mean that you want to know how to increase or decrease he contrast of an image, or do you want to know the range or the gray levels, or perhaps the range divided by the mean, or something else?


one pixel is wildly completely wrong is better... is it right??

There is no right or wrong for this, just how you define accuracy. There are some reasonable definitions of "accuracy" that would say that one pixel wildly wrong would be about equivalent to 38 pixels each wrong by the minimum possible difference. But if you have a human looking at the image, often a block that is one shade darker is completely unnoticeable without special study, whereas one pixel wildly wrong can attract a lot of attention to the human visual system (e.g., a bright red speck on a field of black.)

oh, ok.. i understand.. then, how to calculate the accuracy?

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!