Hi I use Matlab to convert image to hex ,I can get the fig 1(8 bit data)however ,I can't genetate the data like fig2(32 bit data) . Can you please give me some advises on how to deal with it or give me a example.
fig 2
fig 1

4 commentaires

Rik
Rik le 7 Nov 2018
So you want to print a list of values to a txt file? Like fprintf(fid,'0x%06X\n') ?
Zhiyuan Wang
Zhiyuan Wang le 7 Nov 2018
no .%06 or %08,is not the solution,I tried it ,but failed ,it's not work.You can see the result in the below picture.
Rik
Rik le 7 Nov 2018
You're not making it easy for other people to help you. We can do a lot with Matlab, but mind reading is not yet supported. You'll have to explain what your goal is, what your input data is and how your output should look. I have no idea how you are converting a list of values in something that looks like a C syntax to an image on your screen. If you don't explain these things I can only provide very basic help.
Zhiyuan Wang
Zhiyuan Wang le 9 Nov 2018
Modifié(e) : Zhiyuan Wang le 9 Nov 2018
The Matlab's input is image and I hope the output are the 32 bits data,I mean convert images to 32 bits data by matlab.The 32 bits data likes the fig2 shows. @Rik Wisselink.Then I can use the 32 bits data in Xilinx zc706 evaluation board,and the 32 bits data can be recognized by the zc706 board and display the image in screen.

Connectez-vous pour commenter.

 Réponse acceptée

Zhiyuan Wang
Zhiyuan Wang le 7 Nov 2018

0 votes

Thanks .perhaps it's a wrong direction.I should modify my program rather than entangled in convert image to he by Matlab

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange

Produits

Version

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by