A program algorithm to change the values of brightness and contrast of an image, it must be simple
5 ビュー (過去 30 日間)
古いコメントを表示
i need a simple program by which we can change the brightness and contrst of an image
1 件のコメント
Steven Lord
2023 年 1 月 4 日
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free MATLAB Onramp tutorial to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
回答 (1 件)
DGM
2023 年 1 月 4 日
編集済み: DGM
2023 年 1 月 4 日
The normal answer will be to use imadjust(). IPT imadjust is a basic tool for adjusting input/output levels and gamma. (5 parameters)
If you're thinking of something simpler like a basic two-parameter brightness-contrast adjuster, and you want to write your own, see these threads:
The following answer demonstrates both imadjust(), imbcg() and other related tools.
If you want something that is interactive, there is IPT imcontrast(), which can adjust input levels, and there is MIMT immodify(), which can do various levels/gamma/contrast adjustments. I'm sure there are other tools on the File Exchange.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!