'rolling-ball background substraction' in matlab

Is there a reliable 'rolling-ball background subtraction' scripts for matlab?

回答 (1 件)

Image Analyst
Image Analyst 2017 年 10 月 10 日

0 投票

Not exactly sure what that is, but morphological closing has been described as like a rolling ball. So to subtract that from the original image, the operation is called a bottom hat filter and is performed by the function imbothat() in the Image Processing Toolbox.

3 件のコメント

Peyman Obeidy
Peyman Obeidy 2017 年 10 月 10 日
I tried both imbothat and imtophat, but I cant get only very dark spot (potentially separated ) in 'oldB16.jpg. The Bkg image is my background so the setting for the other image should peak no blak spot in bkg image.
Peyman Obeidy
Peyman Obeidy 2017 年 10 月 10 日
Thank you Image Analyst.
After trying different background subtraction methods, I highly recommend this function. Very nice job. http://au.mathworks.com/matlabcentral/fileexchange/40266-sauvola-local-image-thresholding#feedbacks
Sauvola method. Happy to send the rest of code, let me know if you are interested.
raym
raym 2022 年 7 月 22 日
編集済み: raym 2022 年 7 月 22 日
Rolling ball background was mentioned briefly in imerode:
It use erode to get a background of the raw image(better pre-process using gauss smooth to minimize the effect of very low pixels). The things matters is the shape of structure element and the offset. ImageJ's Rolling ball use a non-flat ball-shaped structure element. The optional paraboloid shape may correspond to the distorted ball-shaped structure element that has inharmonious height anf radius. An extreme end is very smoothed ball that is almost a flat pad, then it become the flat strel with no offset. The role of offset is to tell us that the a more distal-localized pixel should have less impact on the background value calculation, thus to minimize this effect, a additional offset is force added to this pixel just in case it has a very low value. [In matlab case, the origin is add the highest while the margin pixel add the lowest, thus all pixel are elevated.

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

質問済み:

2017 年 10 月 10 日

編集済み:

2022 年 7 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by