Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dispatchcode/bmpinfo
A simple example on how to read a BMP header, without using external resource (I use only BITMAPINFOHEADER struct). In addition, for more clariry, I would show you how obtain the pixel array and apply some filters.
https://github.com/dispatchcode/bmpinfo
assembly bmp bmp-header filter masm
Last synced: about 1 month ago
JSON representation
A simple example on how to read a BMP header, without using external resource (I use only BITMAPINFOHEADER struct). In addition, for more clariry, I would show you how obtain the pixel array and apply some filters.
- Host: GitHub
- URL: https://github.com/dispatchcode/bmpinfo
- Owner: DispatchCode
- Created: 2016-05-15T16:15:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-08T11:49:18.000Z (almost 3 years ago)
- Last Synced: 2024-03-23T19:22:26.878Z (11 months ago)
- Topics: assembly, bmp, bmp-header, filter, masm
- Language: Assembly
- Size: 12.3 MB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#README#
**DISCLAIMER** I don't own the rights of the example images; they are taken from Google.
-------
A simple example on how to read a BMP header with Assembly (MASM32), without using external resource (I use only BITMAPINFOHEADER struct). In addition, for more clarity, I would show you how obtain the pixel array and apply some filters.
## What can I get from BMPInfo? ##
With BMPInfo you can get info about the header of the BMP and the DIB header. At this moment BMPInfo support only the basicly info and doesn't support the optional values.
In addition you can find some filters that you can apply on the pixel array obtained from the image.
This are the filters that you can test:
- GrayScale;
- Pixel inversion;
- ContrastThe Contrast filter don't work really correctly; must be fixed (and the filters must be optimized).
**IMPORTANT!** please, make sure that your input image is at the same directory of the exe.
##Screenshots##
I must upload screnshot like PNGs because BMP is not supported here.
*The application*
![window.png](https://bitbucket.org/repo/MBodBM/images/1309479650-window.png)
*Original Image, without filter*
![tiger.png](https://bitbucket.org/repo/MBodBM/images/2452464261-tiger.png)
*Grayscale filter*
![output.png](https://bitbucket.org/repo/MBodBM/images/3522120128-output.png)
*Inversion filter*
![output.png](https://bitbucket.org/repo/MBodBM/images/3111072794-output.png)
*Contrast filter*
![output.png](https://bitbucket.org/repo/MBodBM/images/3754382431-output.png)