How to Process Image data when they are at Hex format (for embedded C applications)
2 views (last 30 days)
Show older comments
I have a matlab code that is intended for embedded hardware. The matlab code is about Image Classification which will be deployed in STM32 (uC, not the Discovery board) using C code generator.
This is the simple block diagram of my architecture:

The image that will be captured by the camera in arduino is at [480, 640] pixels (RGB) which will be saved into the external shared flash memory. Then, the STM32 will retrieve the image in the shared flash memory which are at HEX format (jpg image).
My problem is that how can I process the Hex in my matlab generated C code such that it can resize the image and turn the image into grayscale.
I have found some code related to my problem but it is not intended for code generation in C.
If someone is knowledgeable on this, please help. Thanks!
4 Comments
Walter Roberson
on 13 Feb 2021
https://www.file-recovery.com/jpg-signature-format.htm
Write the hex to a file as binary and imread the binary.
There are probably also Java methods.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!