Demosaic 16bit Image into a 16 bit Color image

2 visualizzazioni (ultimi 30 giorni)
azarm
azarm il 20 Nov 2013
Commentato: Image Analyst il 21 Nov 2013
Hi, the Demosaic function in Matlab create a truecolor image not in the same format as the input, so the output is of type "Double". Anybody knows an optimal way to convert a bayer image into a true color image keeping the type? tnx
Azi

Risposte (1)

Image Analyst
Image Analyst il 20 Nov 2013
Can't you just use uint8() to cast it to uint8 or whatever?
  2 Commenti
azarm
azarm il 21 Nov 2013
in Conversions you lose information in the image! that's why i do not want to use any class conversions.
Image Analyst
Image Analyst il 21 Nov 2013
Then don't. You don't have to. You can keep it as floating point. You only need to convert to uint8 if you want to display it or you want to save it in a standard image format file.

Accedi per commentare.

Categorie

Scopri di più su Convert Image Type in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by