Fit background of an image

조회 수: 2 (최근 30일)
Angela
Angela 2018년 4월 6일
댓글: Angela 2018년 4월 10일
I have an image that looks like the one attached and i am trying to smooth its intensity from left to right. I tried the method using the imtophat filter but it did not give me good results because there is not a lot of background in the image. I want to fit the background to a linear f(x) function and then correct it.
1. Does anyone know how to fit the background to a linear function?
2. Once you have the background function, how do you correct the data?

채택된 답변

Prajit T R
Prajit T R 2018년 4월 9일
Hi Angela
One thing that you could try is to use 'imadjust' to improve the visibility of the image after top-hat filtering. If this doesn't work, try using the 'lazysnapping' or 'grabcut' function to segment the image into foreground and background. Once you filter out the area of interest in the image, you may get better results.
Cheers
  댓글 수: 3
Prajit T R
Prajit T R 2018년 4월 10일
Angela
Angela 2018년 4월 10일
Thank you for your help!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by