Skip to content

Which color map is returned in example script cam.py ? #312

Answered by jacobgil
CristianCosci asked this question in Q&A
Discussion options

You must be logged in to vote

grayscale_cam is a float32 image with values in the range [0, 1].
Just convert it to np.uint8:
grayscale_cam_uint8 = np.uint8(grayscale_cam * 255)
and save grayscale_cam.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@CristianCosci
Comment options

Answer selected by CristianCosci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants