Kernel: Python 3 (system-wide)
In [2]:
Out[2]:
[[0.27 0.35 0.27 0.37 0.31 0.25 0.29 0.29]
[0.37 0.46 0.51 0.53 0.45 0.31 0.3 0.28]
[0.45 0.6 0.75 0.8 0.57 0.43 0.34 0.31]
[0.46 0.76 0.9 0.89 0.82 0.45 0.32 0.34]
[0.51 0.79 0.9 0.92 0.75 0.49 0.43 0.29]
[0.44 0.56 0.75 0.76 0.59 0.56 0.62 0.42]
[0.36 0.48 0.49 0.47 0.45 0.61 1. 0.56]
[0.28 0.34 0.31 0.26 0.31 0.4 0.49 0.37]]
In [3]:
Out[3]:
(8, 8)
In [11]:
Out[11]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/tmp/ipykernel_846/1674472634.py in <module>
2
3 # Label the connected components (blobs) of binary image A_threshold
----> 4 A_labels, n = sn.label(A_threshold)
5 print("number of blobs:", n)
6
NameError: name 'A_threshold' is not defined
In [12]:
Out[12]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/tmp/ipykernel_846/3753039670.py in <module>
----> 1 plt.imshow(A) # show the original image
2 plt.scatter(x_pos, y_pos, color="black", marker="x", s=200)
NameError: name 'plt' is not defined
In [0]:
In [13]:
Out[13]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/tmp/ipykernel_846/2136523447.py in <module>
2
3 # Create arrays for storing blob coordinates
----> 4 x_pos_array = np.zeros(num_frames)
5 y_pos_array = np.zeros(num_frames)
6
NameError: name 'np' is not defined
In [14]:
Out[14]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/tmp/ipykernel_846/4140317672.py in <module>
----> 1 plt.figure(figsize=(5,5))
2 ax = plt.gca()
3
4 plt.plot(x_pos_array, y_pos_array)
5 plt.xlim(0, x_max-x_min)
NameError: name 'plt' is not defined
In [0]: