[Solved] change value of list in python


My guess is that it’s a numpy array, not a list. This is logical indexing. The > comparison returns an array of booleans. Wherever those are True, the corresponding element of img is set to [0, 0, 255]. More directly, it’s creating a ring of blue points, where the radius of the inner empty circle is 1% of the maximum of dst.

0

solved change value of list in python