After obtaining the pixel values of an image..how to store those pixel values in an array?
이전 댓글 표시
After obtaining the pixel values of an image..how to store those pixel values in an array?
댓글 수: 4
Walter Roberson
2018년 12월 18일
how are you obtaining pixel values ?
Kamali M
2018년 12월 18일
Kamali M
2018년 12월 18일
Guillaume
2018년 12월 18일
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
채택된 답변
추가 답변 (3개)
Walter Roberson
2018년 12월 18일
3 개 추천
The pixel values are already stored in my_image and do not need to be stored again .
Kamali M
2018년 12월 18일
0 개 추천
댓글 수: 1
Walter Roberson
2018년 12월 18일
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
2019년 9월 30일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!