image processing for the vignetting
이전 댓글 표시
Hello Sir,
If you could help me, it will help me a lot. I attached my code in the comment which I wrote, please correct me.
I want to do something about vignetting on image.
I want to calculator f scale factor for the vignetting.
I have the following algorithm, I need to implement it using Matlab.
- Take an unknown image (which is in the attachment, it is a image after vignetting)
- Then, find the highest gray values the image, Say the maximum value is Max1 in the image. Say there are 100 such values Max1 through the image.
- For each of those values, assume that the original value at that location was 255. Using the following formula, find the f value for those 100 locations. This means you solve for f, since you know a, b, D and r for each of the 100 different locations.
- Then we average this 100 values to get get the f
Formula:
outputPixel = inputPixel ? (1 ? f ? (d/maxDistance))
maxDistance = OC, C is the center of the rectangle (image).
d is the distance from center to the current pixel.
f is the scale factor, 0 ? f ? 1, if f=0, outputPixel = inputPixel.
댓글 수: 2
matlabgeek
2016년 1월 21일
편집: Walter Roberson
2016년 1월 21일
Rena Berman
2017년 1월 24일
(Answers dev) Restored question.
답변 (1개)
Image Analyst
2016년 1월 21일
0 개 추천
See my attached background correction demo. This will "flatten" an image according to a vignetted or shaded "uniform" background.
댓글 수: 2
matlabgeek
2016년 1월 21일
편집: matlabgeek
2016년 1월 21일
Image Analyst
2016년 1월 21일
If you still want this answered, then edit your original post and have it make sense again, and attach your picture and say what you want to do with it.
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!