How to convert bmp file to data file using MATLAB script : Can anyone write me a
ID: 3827918 • Letter: H
Question
How to convert bmp file to data file using MATLAB script :
Can anyone write me an instruction or simple step using MATLAB? Thank you
A. Convert a bmp to a data file Use the MATLAB seript bmp2dat-mat te eenwert a 24-bit-bitmap image to a data fide that ean be sure te use Paint te sawe the image as 4bit-bitmap. Te-use the MATLAE-sefipt open MATLAE and epen the sefipt Change the fHename speeHted from bh16-bmp to the name ofthe bitmap you are trying to eenwert Note the output name is h. I have provided the image data file. Note you can go back and try your own image with the above steps, but the image I chose works well with the enhancement process. This step strips all the header information from the bitmap file and outputs the raw RGB data in the form of a 32-bit word for each pixel. The format for each pixel is as follows: 0x00RRGGBB. Each color component is 8-bits, with the top 8-bits not being used. This allows for each pixel to be stored as an unsigned integerExplanation / Answer
filename=imread('a.bmp');
imwrite(filename,'output.rgb',rgb);
or other command
[rgb,idx]=im2uint16(filename,32);
imshow(rgb);
imshow(idx);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.