I am using Opencv 4.1.0 with python 3.
I resized a 480 X 640 size original image to 500 x 500 that works fine.
Again resized the 500 X 500 image to 25000 X 1 . I am doing this for the purpose of facial recognition using PCA.
Again when I resized the image from 25000 X 1 to 500 X 500 , it did not display the 500 X 500 image . It instead displayed a error output of black and white vertical lines.
Can someone please point out what is going wrong here ? Thanks in advance.
import cv2
import numpy as np
image=cv2.imread('C://Users//raghu//Documents//Faces//gt_db//unique//IMG1.jpg',0)
I1=cv2.resize(image,(500,500))
I2=cv2.resize(I1,(25000,1))
I3=cv2.resize(I2,(500,500))
cv2.imshow('480x640',image)
cv2.imshow('25000X1',I2)
cv2.imshow('500x500',I1)
cv2.imshow('2-500X500',I3)
cv2.waitKey(0)
cv2.destroyAllWindows()
Resizing to I1 works fine.Expecting the output of I3 same as I1.