difference image in showing in Matplotlib and Streamlit

24 Views Asked by At

When I plotting a slice of CT with Matplotlib and Streamlit they show differently that slice. In below I plotting them:

plt.imshow(img, cmap='gray') enter image description here

st.image(img, clamp=True) enter image description here

st..image(img.astype(np.uint8)) enter image description here

As you can see the matplotlib show the best one. How can set streamlit to show this images like matplotlib?

0

There are 0 best solutions below