Commit 5814db0c authored by Kelly Chang's avatar Kelly Chang

kelly boundary

parent 7803e46d
File added
...@@ -73,7 +73,7 @@ if __name__ == '__main__': ...@@ -73,7 +73,7 @@ if __name__ == '__main__':
image = np.array(image)[1:,:] #Convert to an array, leaving out the first row because the first row is just housekeeping data image = np.array(image)[1:,:] #Convert to an array, leaving out the first row because the first row is just housekeeping data
ar1, ar2 = image.shape ar1, ar2 = image.shape
ind1, ind2 = np.random.randint(0,ar1), np.random.randint(0,ar2) #ind1 randomly selects a row, ind2 randomly selects a column, ind1, ind2 = np.random.randint(1,ar1-1), np.random.randint(1,ar2-1) #ind1 randomly selects a row, ind2 randomly selects a column,
#this is now a random pixel selection within the image #this is now a random pixel selection within the image
surrounding = [] #initialize a list to be filled the 8 surrounding pixels surrounding = [] #initialize a list to be filled the 8 surrounding pixels
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment