There is a problem about feature extraction from grayscale image in machine learning.
I have a gray image converted from colored with this.
from PIL import Image
img = Image.open('source.png').convert('LA')
img.save('greyscalesource.png')
image2 = imread('greyscalesource.png')
print("The type of this input is {}".format(type(image)))
print("Shape: {}".format(image2.shape))
plt.imshow(image2)
I actually need to feature extraction from this gray picture because next part is about train a model with this feature for predict to colorized form of an image.
We can't use any deep learning library
There are some of methods such as SIFT ORB FAST... But I really don't know how can extract features for my aim.
#ORB
orb = cv2.ORB_create()
#keypoints and descriptors
kpO, desO = orb.detectAndCompute(img, None)
img7 = cv2.drawKeypoints(img, kpO, 1, flags=cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)
cv2.imwrite('_ORB.jpg',img7)
Output of above code is just True.
Is there any solution or idea what should I do?


