After obtaining the pixel values of an image..how to store those pixel values in an array?
Mostra commenti meno recenti
After obtaining the pixel values of an image..how to store those pixel values in an array?
4 Commenti
Walter Roberson
il 18 Dic 2018
how are you obtaining pixel values ?
Kamali M
il 18 Dic 2018
Kamali M
il 18 Dic 2018
Guillaume
il 18 Dic 2018
Kamali, you have to explain better what it is you want to do. As commented you already have the pixels in an array. It's the my_image array
Risposta accettata
Più risposte (3)
Walter Roberson
il 18 Dic 2018
3 voti
The pixel values are already stored in my_image and do not need to be stored again .
Kamali M
il 18 Dic 2018
0 voti
1 Commento
Walter Roberson
il 18 Dic 2018
What data type do you need as output? What array size do you need as output? What difference do you intend between "pixel values" that you want stored, compared to what is already in my_array ?
Saipraveen
il 30 Set 2019
0 voti
For the information of other users, In this file exchange - https://www.mathworks.com/matlabcentral/fileexchange/72535-image-to-c-c-array-converter, I have written a script to generate an array from an image. I convert the input image to monochrome and store the pixel values in hex format in a different file. It could be modified to suit your needs.
Hope that helps.
Categorie
Scopri di più su Multidimensional Arrays in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!