A simple tool to help learn Rust
- All values are in LittleEndian
- first u32 is always 0
- second u32 is 0 for u16, 16 bit GrayScale images
- second u32 is 2 for f32, floating point images
- third u32 is number of columns
- fourth u32 is number of rows
- subsequent data is pixels in row major order, i.e, pixels of 0th row, followed by pixels of 1st row etc..
- Read both types of IDP files
- Perform simple operations like subtract one image from another.
- Save an image in .IDP format described above
- Manipulate individual pixels efficiently.
- Calculate mean, median of whole frame, each row, each column
- Count number of pixels less than a threshold
- Mask certain pixels as dead pixels and not include them in statistics
- ... More to come..
Some of the code is copied from https://github.com/PistonDevelopers/image
I hope to eventually contribute to that repo too.