如何在C#中显示RAW图像 [英] How can I display RAW image in C#

查看:920
本文介绍了如何在C#中显示RAW图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我一直在研究Camera Module,该模块可以将RAW图像生成为字节数组,因此我想在pictureBox上显示此字节数组.
该模块支持以下类型:
2位灰度级(RAW,仅2位用于Y)
4位灰度级(RAW,仅Y位为4位)
8位灰度级(RAW,仅Y位为8位)
8位彩色(RAW,332(RGB))
12位彩色(RAW,444(RGB))
16位彩色(RAW,565(RGB))
显然我不太擅长使用C#进行图像处理,因此请编写完整的代码,并简要说明其中一种类型.

Hello everyone
I''ve been working on Camera Module and this module can generate RAW image as byte array, so I want to display this byte array on pictureBox.
This module support these types:
2-bit Gray Scale (RAW, 2-bit for Y only)
4-bit Gray Scale (RAW, 4-bit for Y only)
8-bit Gray Scale (RAW, 8-bit for Y only)
8-bit Color (RAW, 332(RGB))
12-bit Color (RAW, 444(RGB))
16-bit Color (RAW, 565(RGB))
Acually I''m not that good at image processing in C# so please write the whole code with brief explanation for one of these types.

推荐答案

对不起,如果您想让人们编写所需的所有代码,则需要进入工作论坛并提出付款要求. RAW转换为图像格式非常简单.您可以阅读我的图像处理文章,了解如何以字节数组形式访问图像,然后遍历565个数据(这是最接近Windows格式的数据),然后从那里构建图像.
I''m sorry, if you want to ask people to write all the code you need, you need to go to the jobs forum and offer to pay them. Conversion of RAW to an image format is pretty straightforward. You could read my image processing articles for how to access an image as a byte array, and then iterate over your 565 data ( that''s the closest you get to a windows format ) and build your image from there.


这篇关于如何在C#中显示RAW图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆