Why do we substract a background image and not divide it?

Subtracting a background image for background correction is the standard way of doing background correction to obtain the foreground.I am wondering if there are situations, where it would make sense to divide with the background image instead.For example, it seems that having a uniform image intensity after division could be beneficial in interpreting an image. E.g in microscopy images.It also seems physically more intuitive to have uniform baseline intensity after background correction/division than to have zero baseline intensity due to subtr...Read more

How to evaluate a background subtraction algorithm given ground truths?

I'm testing a background subtraction algorithm with sample image sequences. I am wondering how one can evaluate the accuracy of a background subtraction algorithm results given ground truths? The only idea I have in mind right now is to take the difference between a result image and its corresponding ground truth image and calculate difference/total_white_pixels_of(ground_truth).Cheers!EDIT: Dear all, by ground truth image I mean binary image with foreground as white blobs and background as black pixels. This is an example of input image and it...Read more

Background subtraction in c#

I'm studying a background subtraction technique.I came to know that using the initialized library Emgucv can provide me with what I want. I want to get the output of a moving object. the object that moves should be in white colour and the rest of the things should be in black or any stationary colour.I have downloaded some materials from internet for the reference purpose but all of them have been provided as .exe or .bat file. is there any way to convert or see the codes used to get that .bat or .exe files....Read more