Apr-24-2019, 04:23 PM
Hi,
I have a problem with my array list in pyhton while using cv2.
I have an array list that looks like that:
A=[[[RGB],[RGB]],....,[[RGB],[RGB]]]
A[i] = heigh of the image
A[][j] = the lenght of the picture
I need to shorten the heigh and the lenght of A,
to do so
A=A[a:b] (with [a,b] the only portion i need)
and i'd like to do :
Yuky
I have a problem with my array list in pyhton while using cv2.
I have an array list that looks like that:
A=[[[RGB],[RGB]],....,[[RGB],[RGB]]]
A[i] = heigh of the image
A[][j] = the lenght of the picture
I need to shorten the heigh and the lenght of A,
to do so
A=A[a:b] (with [a,b] the only portion i need)
and i'd like to do :
for i in range(len(A)): A[i]=A[i][c:d] #(to shorten each A[i] the portion i need)but it doesn't work as it doesn't do what i'd suppose it'd do... is there is a way to remove those unwanted part ? (because del and remove doesn't work as for del, it's an array and it doesn't like it, and for remove i don't know what color is in that pixel so i can't remove the specific pixel i don't want...
Yuky