- Visual Media Processing Using Matlab Beginner's Guide
- George Siogkas
- 266字
- 2021-08-06 16:37:55
Contrasting enhancement using imcontrast
A tool included in the Image Processing Toolbox, which offers an extra helping hand at histogram enhancement is imcontrast
. It can be invoked by displaying an image and then calling the imcontrast
function with input gcf
(get current figure):
>> imshow(img) >> imcontrast(gcf)
This tool gives an interactive way to the user to adjust the histogram of the image by defining a maximum and a minimum value, as well as a center for the histogram of the transformed image. You can do this either by inputting the numerical values of these settings, or by dragging the three red bars on the histogram. No actions are actually performed on the original image until the button Adjust Data is clicked. The tool also gives you the option to clip the outliers of images (pixels with extreme values). In the default setting of 2%, the 1 percent of minimum values and the 1 percent of maximum values are removed.

The methods described so far are quite useful for image enhancement. However, they all suffer from the same shortcoming; they are global methods, operating on the entire image. This has the obvious disadvantage of suboptimal enhancement to images with spatially variant histograms. For such cases, we need the help of locally adaptive histogram enhancement methods.
Tip
The imcontrast
tool can also be used for interactive demonstration of thresholding results. You can see how it works if you reduce the red area of the histogram to include just one value and then drag it left or right to dynamically observe the results of thresholding using various thresholds.
- 基于Proteus和Keil的C51程序設(shè)計(jì)項(xiàng)目教程(第2版):理論、仿真、實(shí)踐相融合
- Mastering Delphi Programming:A Complete Reference Guide
- 精選單片機(jī)設(shè)計(jì)與制作30例(第2版)
- Getting Started with Qt 5
- Manage Partitions with GParted How-to
- Artificial Intelligence Business:How you can profit from AI
- Learning Game Physics with Bullet Physics and OpenGL
- BeagleBone Robotic Projects
- 基于PROTEUS的電路設(shè)計(jì)、仿真與制板
- 筆記本電腦芯片級(jí)維修從入門(mén)到精通(圖解版)
- 單片機(jī)原理與技能訓(xùn)練
- 基于網(wǎng)絡(luò)化教學(xué)的項(xiàng)目化單片機(jī)應(yīng)用技術(shù)
- 單片機(jī)原理及應(yīng)用
- The Deep Learning with PyTorch Workshop
- FPGA實(shí)戰(zhàn)訓(xùn)練精粹