Converting a 16bpp bitmap image to c data array (RGB565 format)...
조회 수: 22 (최근 30일)
이전 댓글 표시
Hi,
I'm having an 16bpp & 320x340 bitmap image. And i need to get an c 1-D data array.
I used the following command,
A = imread('MyImage.bmp');
RGB = im2uint8(A);
Now i got three matrix, each for R, B & G. And each matrix's element size is 8-bit. It means, i think ,i got RGB888 format.
But i want RGB565 format for the input image.
Kindly help me to get single 1D array of each pixel in the image.
Have a nice day.
- Lenin
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!