i created an algorithm with two for-loops for my gray image. Every pixel above the value 180 and on the left side of the image gets a new value.
This algorithm is very slow and takes a few seconds.
Is there a faster way to do this job?
for x in range(img.shape[0]):
for y in range(img.shape[1]):
if(img[x,y]>180 or y>450):
img[x,y]=255