Hi all,
i have a question regarding the preprocessing step "Image mean subtraction". I use the UCSD Dataset for my training
http://www.svcl.ucsd.edu/projects/peoplecnt/So one popular preprocessing step is the mean subtraction. Now i wonder if i am doing it right.
What i am doing is the following:
1. I have 200 gray scaled Train images
2. I put all images in a list and compute the mean with numpy: np.mean(ImageList, axis=0)
This returns me a mean image
3. Now i subtract the mean image from all Train images
When i now visualize my preprocessed train images they are mostly black and have also negative values in it.
Is this correct? Or is my understanding of subtracting the mean image incorrect?
Here is one of my training images (before preprocessing), my mean image and the train image - image_mean:
![](https://lh3.googleusercontent.com/-AS-xfDhNERg/WFW5EVaYZcI/AAAAAAAAAAs/9nfKcs16sa0Vqj-JnpxsBeu3oS-BZISFQCLcB/s1600/Training%2BImage.png)
![](https://lh3.googleusercontent.com/-7wjwg9NnHq0/WFW5KKTJpcI/AAAAAAAAAAw/GWJKQkZaSDUPwJWjf91lN3hdC6atg0uZACLcB/s1600/Mean%2BImage.png)
![](https://lh3.googleusercontent.com/-cdHB7K4umx8/WFW5Q_eCefI/AAAAAAAAAA0/FXN79Vh5zfowingJuxBt9xqKeswN9QigQCLcB/s1600/Image%2B-%2BMean.png)