o
odin.langpkg.dev
packages / library / Entropy_of_image_in_Odin

Entropy_of_image_in_Odin

1ec978dlibrary

It calculates the entropy of an image in a fast way, 570 ms for a 7.6 Giga Bytes image.

No license · updated 1 year ago

Entropy of image in Odin

It calculates the entropy of an image in a fast way, 570 ms for a 7.6 Giga Bytes image.

Description

Calculates the entropy of an 2D image of doubles given as a 1D array and the f64 are in the range of 0 to 255 inclusive.

Compile

make opti_max
time ./calc_entropy_of_image.exe

Benchmark

Single Core on a low frequency Zen3 iGPU
570 ms for a 7.6 Giga Bytes image

License

MIT Open Source License

Have fun!

Best regards,
Joao Carvalho