Questions tagged [image-whitening]
7 questions
14
votes
1 answer
How to perform tf.image.per_image_standardization on a batch of images in tensorflow
I would like to know how to perform image whitening on a batch of images.
According to the documentation in https://www.tensorflow.org/api_docs/python/tf/image/per_image_standardization, it is said that tf.image.per_image_standardization takes as…

I. A
- 2,252
- 26
- 65
7
votes
3 answers
Is this the correct way of whitening an image in python?
I am trying to zero-center and whiten CIFAR10 dataset, but the result I get looks like random noise!
Cifar10 dataset contains 60,000 color images of size 32x32. The training set contains 50,000 and test set contains 10,000 images respectively.
The…

Hossein
- 24,202
- 35
- 119
- 224
1
vote
0 answers
Make background of image white in python with canny edge detection
I would like to change the background of this image to a white background in python. I tried canny edge detection, but it has a hard time finding the edges at the top of the product as you can see in the second picture. I tried different thresholds,…

Tycho Koster
- 53
- 3
1
vote
1 answer
Doing PCA and Whitening with matlab
My task is to do PCA and whitening transform with given 2dimentional 5000data.
What I understand with PCA is analyzing the main axis of the data with covariance Matrix's Eigen Vector and rotate the main axis to the x axis!
So here's what I…

hjkim
- 25
- 5
1
vote
1 answer
ZCA whitening in python for Machine learning
I am training 1000 images of 28x28 size. But before training, I am performing ZCA whitening on my data by taking the reference from How to implement ZCA Whitening? Python.
Since I have 1000 data images of size 28x28, after flattening, it becomes…

Akhilesh
- 1,024
- 1
- 9
- 26
0
votes
0 answers
A very strange phenomenon when coding Bayes classifier using PCA Whitening and LDF(Linear Discriminant function)
It is used with MNIST data. You can find mnist data in this web:
Mnist Data
There are four files used in the code, i.e.
train-images-idx3-ubyte.gz: training set images (9912422 bytes)
train-labels-idx1-ubyte.gz: training set labels (28881…

Zhonghan Wang
- 1
- 1
0
votes
1 answer
Value Error in image processing
I was working on whitening of images in a database. Since the code is huge, I will give only the function in the code where there is an error -
def sample_images_raw(fname):
image_data = cv2.imread(fname)
patch_size = 12
n_patches =…