how to calculate the accuracy of an image and display it in bar graph?
You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Show older comments
0 votes
Example: display bar graph that show accuracy of the original images and also contrast image.
Thank you
i'm very appreciate for your help
Accepted Answer
Image Analyst
on 7 Dec 2012
0 votes
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?
11 Comments
shaira ain
on 7 Dec 2012
im sorry.. im a newbie in matlab..
actually i want to know the accuracy of an image based on the range of the gray levels?
Image Analyst
on 7 Dec 2012
This doesn't have anything to do with MATLAB, yet. How do you know the accuracy of your image is not 100%? Why do you suspect errors?
shaira ain
on 8 Dec 2012
actually, im doing an image processing mini project for this subject.. im using image enhancement technique...that includes log transformation, power log transformation, gamma correction, contrast stretching, histogram equalization, BBHE and MMBBHE.
and my lecturer ask me to show the accuracy of each image throught a bar graph..
thank you..
Walter Roberson
on 8 Dec 2012
In order to make this calculation, you would need a copy of the "real" image, the image as it would be if it was perfect. Do you have that?
shaira ain
on 8 Dec 2012
do you mean an "original image"? i have it.
Walter Roberson
on 8 Dec 2012
Did you start with an image and artificially degrade it and now are trying to use enhancement techniques to get closer to the first image? If you did, then that first image is what needs to be known.
If you started with a degraded image and are trying to get more out of it (e.g., trying to read a blurry license plate), then you would not have any way of measuring the accuracy.
shaira ain
on 8 Dec 2012
yup...the first one
i start an image and artificially degrade it and now trying to use enhancement techniques to get closer to the first image.
do you know how??
Walter Roberson
on 8 Dec 2012
Okay, we are getting somewhere.
Now you need to define "accuracy" for your purpose.
For example, which is better: that 100 pixels are one shade darker than they should be, or that one pixel is wildly completely wrong?
shaira ain
on 8 Dec 2012
one pixel is wildly completely wrong is better... is it right??
Walter Roberson
on 8 Dec 2012
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.)
shaira ain
on 8 Dec 2012
oh, ok.. i understand.. then, how to calculate the accuracy?
More Answers (0)
Categories
Find more on Contrast Adjustment in Help Center and File Exchange
Tags
See Also
on 7 Dec 2012
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)