Skip to content

Tag: image

Matplotlib : Applying cmap directly is different than imshow()

I have a single band image with dimensions (62, 62), that ranges from [0, 0.3]. For context it is the NDVI band, calculated by (NVI-Red) / (NVI+Red), where NVI is a band. Can more about it here: I display my image with cmap=RdYlGn to get: However, now I want to apply the cmap to ndvi and save it to

Ignore image name while getting hash

I’m coding a program which’ll take an image for an input, check it against images in a database and output the image with the same hash However, when using hash(“imagepath”) 2 of the same images give different hashes, even when the only difference is the image’s name, which makes me believe the name is the issue Is there a way