This code was written for a colleague of mine that needed a quick script that could convert a 16 color bmp to a Xilinx FPGA memory file. This could be used for your projects or for an example on the structure for your own coe files. Zip file includes the function, a test bmp, and the resultant coe file. The code makes the assumption that the data is scanned row by row, not column by column.
Cite As
Timothy Felty (2025). BMPtoCOE (https://www.mathworks.com/matlabcentral/fileexchange/12437-bmptocoe), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R13SP1
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Computer Vision Toolbox > Computer Vision Toolbox Supported Hardware >
Find more on Computer Vision Toolbox Supported Hardware in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |