You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following this tutorial I tried the overlay() function on one of my images (DAPI stain):
importmahotasasmhimportnumpyasnpfrommatplotlibimportpyplotasplt# also tried: import pylab as pltfilename=''# some image fileimg=mh.imread(filename)
thresh=mh.otsu(img.astype(np.uint))
img_bin=img>threshimg_over=mh.overlay(img, red=img_bin)
plt.imshow(img_over)
plt.show()
This results in a gray image without any coloring.
(img_over[:,:,0] ==img_over[:,:,1]).all()
returns True
I'm using mahotas version 1.4 and matplotlib version 1.4.3 and python 2.7
The text was updated successfully, but these errors were encountered:
to get the same data type and scale as the loaded demo image, I get a colored image, but again the color is cyan instead of red. In addition, the the grayscale image (first input argument) is colorized and not the binary mask (second input argument).
Following this tutorial I tried the overlay() function on one of my images (DAPI stain):
This results in a gray image without any coloring.
returns
True
I'm using mahotas version 1.4 and matplotlib version 1.4.3 and python 2.7
The text was updated successfully, but these errors were encountered: