I have a variable of z storing features of length and height of image files where z is
z = [length, height]
and i want to change these dimension to just:
z = [area] where area = length * height
I tried using the numpy reshape function as follow:
area = z.shape[0] * z.shape[1] #length * height
z = z.reshape(-1) #was trying to reduce to just z = [area]
but it seemed like I'm not using the reshape function correctly. Could anyone help me out?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)