Image processing Image conversion

1 view (last 30 days)
Dipak
Dipak on 22 Jun 2012
Edited: DGM on 31 Dec 2023
Hello,
How Do i convert any 8 bit,.16 bit,32 bit, 64 bit image to RGB that is 24 bit image? can any one has answer?
  1 Comment
Walter Roberson
Walter Roberson on 22 Jun 2012
Are those "8 bits per channel", "16 bits per channel", and so on, or are those "8 bits monochrome", "16 bits monochrome", and so on?
Is "RGB that is 24 bit image" 8 bits for each of 3 channels = 24 bits total per pixel, or is it 24 bits for each channel = 72 bits total per pixel ?

Sign in to comment.

Answers (1)

DGM
DGM on 30 Dec 2023
Edited: DGM on 31 Dec 2023
Okay, so the output is a 24b RGB image. We can assume this means an 8,8,8,0,0 arrangement; that's pretty common. So the goal seems specific.
The input is "any 8 bit, 16 bit, 32 bit, 64 bit image". It's not enough to say that's unclear. It's universal. Are those also RGB formats? Maybe. Are they I/IA/RGBA/indexed? Maybe. How are the contents of an RGB pixel packed into 16 bits? Any way they might be. Are these images represented as a prismatic arrays in the workspace, or are they still somehow encoded in a file on disk? Maybe. Are they being read via imread()? What about fread()? -- or are they being accessed via .NET? Yes, maybe. Is any of this design ambiguity resolved prior to the developed solution being applied? No, apparently not.
What is the route from anywhere to Albequerque NM? It's the envelope which contains both Albequerque and the entire universe. Allot extra travel time in case it turns out that you didn't actually even want to go to Albequerque in the first place.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!