Posts by Jeferson • 21 points
2 posts
-
1
votes4
answers412
viewsA: How to check if a list contains 3 consecutive numbers
A two-line numerical approach. Passo 1 locates what values have a rate of change equal to 1. Passo 2 test for value sequence True. import numpy as np A = np.random.randint(0, 10, size=(10,))…
-
1
votes1
answer90
viewsA: Image transformation according to parameters of a photo
As reported, you already have the points of the polygon in relation to the reference system (let’s call the points of ), and the observation point parameters . A new variable to be added is the…