Skip to content
Snippets Groups Projects

modified to inline for figure to be visible

Merged bepi requested to merge bepi into master
1 file
+ 8
3
Compare changes
  • Side-by-side
  • Inline
  • 8c8e42e4
    test · 8c8e42e4
    bepi authored
+ 8
3
# e.g. jet or summer
# e.g. jet or summer
plt.figure(figsize=(10,10))
plt.figure(figsize=(10,10))
plt.imshow(im_org, cmap="gray")
plt.imshow(im_org, cmap="gray")
plt.show()
plt.show();
%% Cell type:code id: tags:
%% Cell type:code id: tags:
# The function hist takes a 1D array as input, and therefore the numpy function is called to convert the image to a
# The function hist takes a 1D array as input, and therefore the numpy function is called to convert the image to a
# 1D array.
# 1D array.
plt.hist(im_org.ravel(),100)
plt.hist(im_org.ravel(),100)
plt.show()
plt.show();
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
plt.subplot(1,2,2)
plt.subplot(1,2,2)
plt.imshow(im_thres_float, cmap = "gray")
plt.imshow(im_thres_float, cmap = "gray")
plt.title('Threshold segmented image - float')
plt.title('Threshold segmented image - float')
plt.show()
plt.show();
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
 
%% Cell type:code id: tags:
 
``` python
Loading