Commit
·
561a837
1
Parent(s):
577e72e
Modified to compute faster "add_pixel" function
Browse files
Data_Generation/Piecewise_Box_Functions.py
CHANGED
@@ -75,7 +75,7 @@ def update_array(array_original, array_new, image_size):
|
|
75 |
return A
|
76 |
|
77 |
|
78 |
-
def add_pixels(array_original, additional_pixels
|
79 |
# Adds pixels to the thickness of each component of the box
|
80 |
A = array_original
|
81 |
filter = np.array(([0, 1, 0], [1, 1, 1], [0, 1, 0])) # This filter will only add value where there are pixels on
|
|
|
75 |
return A
|
76 |
|
77 |
|
78 |
+
def add_pixels(array_original, additional_pixels):
|
79 |
# Adds pixels to the thickness of each component of the box
|
80 |
A = array_original
|
81 |
filter = np.array(([0, 1, 0], [1, 1, 1], [0, 1, 0])) # This filter will only add value where there are pixels on
|