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!