0

I am trying this below code to find the bacteria in the image. but the cmap function is not doing anything in the image.

Am i missing anything in the code? Why the cmap is not working? I am getting the original image even after applying cmap.

can i know the reason for this?

import scipy.ndimage 
import skimage.io
from matplotlib import cm as cm
import numpy as np
from matplotlib import pyplot as plt
im_phase = skimage.io.imread('ecoli_phase.tif')
skimage.io.imshow(im_phase / im_phase.max())
fig, ax = plt.subplots(2, 2, figsize=(12,10))
ax[0,0].imshow(im_phase, cmap=plt.cm.gray)
ax[0,1].imshow(im_phase, cmap=plt.cm.RdBu_r)
ax[1,0].imshow(im_phase, cmap=plt.cm.YlGnBu_r)
ax[1,1].imshow(im_phase, cmap=plt.cm.copper)

0 Answers0