Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -95,8 +95,8 @@ def orientacion(patron, w):
|
|
95 |
mOrientaciones[i, j] = (0.5 * math.atan2(YY, XX) + math.pi/2.0) * (180.0 / math.pi)
|
96 |
return mOrientaciones
|
97 |
|
98 |
-
def representativo(
|
99 |
-
m, n =
|
100 |
imarray = np.array(im, np.float32)
|
101 |
patron = imarray[1:m-1, 1:n-1]
|
102 |
EE = orientacion(patron, 14)
|
|
|
95 |
mOrientaciones[i, j] = (0.5 * math.atan2(YY, XX) + math.pi/2.0) * (180.0 / math.pi)
|
96 |
return mOrientaciones
|
97 |
|
98 |
+
def representativo(im):
|
99 |
+
m, n = im.size
|
100 |
imarray = np.array(im, np.float32)
|
101 |
patron = imarray[1:m-1, 1:n-1]
|
102 |
EE = orientacion(patron, 14)
|