Image background correction for static object imaged using different background

3 ビュー (過去 30 日間)
AUWAL ABUBAKAR
AUWAL ABUBAKAR 2021 年 1 月 7 日
回答済み: Shreshth 2024 年 5 月 14 日
Dear all,
Please I need help on background correction. I imaged a stationary object (person lying on a table) but with three different background scenes. The object position varies on each of the images despite the object was not moved (See image attached). The mean pixel value in the ROI (red rectangle) is 872mm, 843mm and 786mm for image a, b and c respectively.
Please is there any way I can correct the background so that the ROI value on all the images will be appproximately the same?.
Many thanks in anticipation of your help.
  1 件のコメント
Image Analyst
Image Analyst 2021 年 1 月 7 日
Possibly. Upload the original image and original background image, not a screenshot of 3 pseudocolored images.

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

回答 (1 件)

Shreshth
Shreshth 2024 年 5 月 14 日
Hello Auwal,
It seems that[RS1] [SS2] you are dealing with background variation in your images, which can affect the mean pixel values in your region of interest (ROI).
You can solve the issue is by Background Subtraction process. It is a common technique used to separate foreground objects from the background in images. It works well when the background is relatively static. You can subtract the background image (without the object) from each of your three images to obtain a foreground mask. Then, compute the mean pixel value within your ROI on the masked images.
You can refer to this detailed example by MathWorks to understand the process of Background Subtraction:
Hope it helps.

Community Treasure Hunt

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

Start Hunting!

Translated by