Farah
Farah

Reputation: 1

panoramic x-ray normalization in python

I have this screenshot of an x-ray image in a jupyter notebook:

screenshot

and after applying normalization in this code

from sklearn.preprocessing import StandardScaler
import numpy as np

X_train = np.reshape(X_train, (X_train.shape[0], -1))
X_test = np.reshape(X_test, (X_test.shape[0], -1))

scaler = StandardScaler()
X_train = scaler.fit_transform(X_train)
X_test = scaler.transform(X_test)

X_train = np.reshape(X_train, (X_train.shape[0], 224, 224,3))
X_test = np.reshape(X_test, (X_test.shape[0], 224, 224,3))

print(X_train.shape)

the x-ray image appears like that

enter image description here

is that normal?

I tried to normalize my x-ray images for the model can easily predict the results

Upvotes: 0

Views: 93

Answers (0)

Related Questions