how can i implement given formula in image processing?

i have to aplly this foumula for contrast streching plz give me matlab program of this formula
s=(a-rmin)*(L/(rmax-rmin)); where L=256 rmin=0 rimax=255

 採用された回答

Nitin
Nitin 2014 年 2 月 16 日

0 投票

There are lots of options for this:
Please check out the Matlab functions here.
You might need to define smaller blocks in your image and apply it locally depending on your requirements

4 件のコメント

ibtisam aslam
ibtisam aslam 2014 年 2 月 16 日
thankx nitni... but i have to do contrast straching using given formula no with builtin command.
Nitin
Nitin 2014 年 2 月 16 日
try dividing your image into smaller regions and apply your algorithm on each region
ibtisam aslam
ibtisam aslam 2014 年 2 月 17 日
nitini i agree with you.. can u send me complete program...?
Image Analyst
Image Analyst 2014 年 2 月 17 日
I don't. I see no reason why scaling an image would require doing it region by region. Nothing has been said by the original poster that would require that. And since mat2gray does exactly the operation they requested, I'm not sure why they're not following my answer.

サインインしてコメントする。

その他の回答 (1 件)

Image Analyst
Image Analyst 2014 年 2 月 16 日

0 投票

Simply use mat2gray().
Or, if you want to scale to something other than min-to-0 and max-to-255 you can use imadjust.

タグ

質問済み:

2014 年 2 月 16 日

コメント済み:

2014 年 2 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by