how can i implement given formula in image processing?
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Nitin
2014-2-16
There are lots of options for this:
You might need to define smaller blocks in your image and apply it locally depending on your requirements
4 个评论
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
2014-2-16
Simply use mat2gray().
Or, if you want to scale to something other than min-to-0 and max-to-255 you can use imadjust.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!