text_plain_output_1.png
threshold_list = [10, 20, 200]
fig, m_ax = plt.subplots(2, len(threshold_list), figsize=(15, 6))
for c_thresh, (c_ax1, c_ax2) in zip(threshold_list, m_ax.T):
    bone_thresh = bone_image > c_thresh
    c_ax1.imshow(bone_thresh, cmap='jet')
    c_ax1.set_title('Bone @ {}, Image'.format(c_thresh))
    c_ax1.axis('off')
    cell_thresh = bone_image < c_thresh
    c_ax2.imshow(cell_thresh, cmap='jet')
    c_ax2.set_title('Cell @ {}, Image'.format(c_thresh))
    c_ax2.axis('off')