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

kelly boundary

parent 7803e46d
Loading
Loading
Loading
Loading

.DS_Store

0 → 100644
+8 KiB

File added.

No diff preview for this file type.

+1 −1
Original line number Original line Diff line number Diff line
@@ -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

images/.DS_Store

0 → 100644
+8 KiB

File added.

No diff preview for this file type.