Demosaic 16bit Image into a 16 bit Color image
4 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Image Analyst
2013-11-20
Can't you just use uint8() to cast it to uint8 or whatever?
2 个评论
Image Analyst
2013-11-21
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modify Image Colors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!