I'm looking to do something sort of like background removal, sort of like blob detection...
Basically, the idea is, I want to be able to snap a photo of a person or other object in front of a reasonably uniform background -- say, a wall, or a carpeted floor. Then, with as little user interaction and parameters as possible, I want to remove that background completely, leaving me with the subject on a pure white background.
I realize if the subject has any coloration that's similar to the background which isn't completely surrounded by other colors (e.g. a person wearing a white shirt standing in front of a white wall), I'm probably out of luck. That's fine. I just want this to work in most situations.
Since I need to be working in C, C++ and/or Obj-C, I'm expecting OpenCV is the right toolkit to use here, but if I'm actually wrong about that, please chime in... Assuming it is indeed a good plan to go with OpenCV, what might be the best way to do what I'm trying to do?
Thanks.