I have a bunch of images, thousands actually. And I need to make sure the background is pure white. I know how to get the images and scan folders and all that stuff. Just not sure how to modify individual pixels. Not looking for speed, as long as it works.
I know this will get subject and non-background pixels. But this will be one step of many so if the subject is modified will have to resort to photoshop or something maybe.
Example pseudo code
for w as image.width
for h as image.height
if image.pixel[w][h].r >=250 and image.pixel[w][h].g > 250 and image.pixel[w][h].b > 250
begin //pixel is near white so force it to white
Just to recap, just looking to loop trough all pixels and check pixel values and if they fit a criteria, change them.