tproduit / pic2map

QGIS plugin for camera orientation and interaction between a picture and the map (monoplotting).
22 stars 5 forks source link

ortho.py:makeLineSuppress0: Why is the variable 'im' assigned two times? #18

Closed apiszcz closed 4 years ago

apiszcz commented 4 years ago

` def makeLineSuppress0(self, image = None):

    imX = self.Xmat
    imY = self.Ymat
    im = image

    #Create an array with the matrix of coordinates
    imXLine = imX.reshape((1, imX.shape[0]*imX.shape[1]))
    imYLine = imY.reshape((1, imX.shape[0]*imX.shape[1]))

    #Suppress Nan values
    id0 = np.nonzero(np.isnan(imXLine)==1)

    imXLine = np.delete(imXLine, id0)
    imYLine = np.delete(imYLine, id0)

    im = image

`