绘制与拜耳图像的问题。 [英] Drawing issue with bayer image.
问题描述
大家好。
我有关于绘制拜耳形象的问题。
我会解释因为我无法附上图片文件。
创建查看器程序时出现问题。
Mono和Color图像没有问题,但Bayer图像(如RG,GB图案)有问题。
当我放大拜耳图像时,我可以在查看器程序中看到新模式。
(实际上,原始数据中没有模式。)
这种模式看起来像十字架或棋盘格。
有人告诉我,这个问题与'奈奎斯特 - 香农采样定理','走样'有关。
但是......我怎么能解决这个问题呢?
我用CImage和GDI函数编程。
(例如StrechBlt)
请告诉我。
谢谢。
我的尝试:
我试图绘制GDI和GDI +。
并使用OpenCV。
但是......我无法解决它。
Hi all.
I have a question about Drawing Bayer image.
I will explain it because I can't attach a picture file.
There was a problem when I create the viewer program.
There is no problem with Mono and Color images but Bayer image(like RG, GB pattern) has a problem.
When I zoom in the Bayer image, I can see the new pattern on the viewer program.
(Actually, there is no pattern in raw data.)
This pattern looks like a cross or a checkerboard.
Someone told me, this issue related to 'Nyquist-Shannon sampling theorem', 'aliasing'.
But... How can I solve this issue?
I programmed with CImage and GDI function.
(e.g. StrechBlt)
Please advise me.
Thank you.
What I have tried:
I tried to draw GDI and GDI+.
And use OpenCV.
But... I couldn't solve it.
推荐答案
查看我的库: Plain C重新取样DLL [ ^ ]。
别名在图像处理中始终存在问题。当你将一个休息图像(因子至少是最大变焦)绘制到一个记忆图像然后从该图像绘制缩放区域时,你应该解决这个问题。 (我想你的原始数据是矢量数据)
另外看一下优秀的图像文章 CxImage 提供了一个很好的洞察力和大量的示例代码。
最后的哈克将是你在上面绘制图像你自己的,通过绘制圆圈,线条和文字。很多工作,但有可能。
Aliasing is always a problem in image processing. You should solve that, when you draw a hugh image (factor is at least maximal zoom) into a memory image and then paint the zoomed area from this image. (I guess your raw data is vector data)
Take also a look at the outstanding image article CxImage which provide a hugh insight and a lot of sample code.
Last Hack would be that you draw the image on your own, by drawing circles, lines and text. A lot of work, but it is possible.
这篇关于绘制与拜耳图像的问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!