找回密码
 注册
搜索
查看: 2306|回复: 27

[讨论] 请大家帮忙分析一下这张图的缺陷是怎么引起的

[复制链接]
发表于 2007-6-20 09:36:30 | 显示全部楼层 |阅读模式
物体的边缘本来应当是直线,而图中边缘出现了锯齿,不知道是什么原因,请大家帮忙分析一下,谢谢!
[upload=jpg]UploadFile/2007-6/07620@52RD_sercomm-jaggies.JPG[/upload]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2007-6-20 09:57:51 | 显示全部楼层
放大看就正常了吧?
点评回复

使用道具 举报

发表于 2007-6-20 10:26:52 | 显示全部楼层
可能是你软件设置方面的问题
点评回复

使用道具 举报

发表于 2007-6-20 11:34:42 | 显示全部楼层
YUV或RGB的配对错误. 应该有解.
搂主用哪家sensor?什么型号?YUV还是RGB数据格式?
[br]<p align=right><font color=red>+1 RD币</font></p>
点评回复

使用道具 举报

发表于 2007-6-20 11:58:04 | 显示全部楼层
可以在软件方面改善,不能完全解决.
点评回复

使用道具 举报

发表于 2007-6-20 14:07:14 | 显示全部楼层
很显然是isp 的edge值太大了,减小就OK了[em02]
点评回复

使用道具 举报

发表于 2007-6-20 14:22:18 | 显示全部楼层
锯齿不能简单定位为edge太强.
数据配对错误一定会有锯齿.
点评回复

使用道具 举报

发表于 2007-6-20 21:26:01 | 显示全部楼层
step size in quatization table too big
点评回复

使用道具 举报

发表于 2007-6-20 21:28:00 | 显示全部楼层
if YUV components not matches each other, you should see wrong color not 锯齿[br]<p align=right><font color=red>+3 RD币</font></p>
点评回复

使用道具 举报

 楼主| 发表于 2007-6-21 09:42:17 | 显示全部楼层
我用的是ov7670 的sensor , jjyy讲的有道理,jjyy请你详细的解释一下好吗?我想知道该怎么解决,谢谢!
点评回复

使用道具 举报

发表于 2007-6-21 11:00:07 | 显示全部楼层
jjyy is right. YUV is related to color not edge.

Does your image is after downsample ?
If your image is after downsample, then this may be usual.
How to decrease this effect ? You can check your sensor to see if it has bining mode.
Such as micron sensor, micron sensor has bining mode to reduce this effect.
点评回复

使用道具 举报

发表于 2007-6-21 12:42:56 | 显示全部楼层
楼主,我建议你把0x1b寄存器改一下,如果是1就改成0,如果是0改成1.
楼上的估计理解错了:)
YUV配对错误会引起颜色错误,也可能造成锯齿!
颜色错误就不说了,大家都知道。
锯齿效果产生过程如下

例如原始数据如下:
Y0 U0 Y1 V0    Y2 U2 Y3 V2
一个clk延时后同步得到:(可能有多种情况产生延时)
U0 Y1 V0 Y2    U2 Y3 V2 Y4
Y和UV顺序交换:(7670有这种设置的寄存器)
Y1 U0 Y2 V0    Y3 U2 Y4 V2
这时候就一定会有锯齿。

楼主贴的图片不是全尺寸,如果是downsample下来得到,有锯齿不奇怪。
最好把全尺寸铁上来看看。[em25]
点评回复

使用道具 举报

发表于 2007-6-21 12:45:11 | 显示全部楼层
<DIV class=quote><B>以下是引用<I>jjyy</I>在2007-6-20 21:28:00的发言:</B>
if YUV components not matches each other, you should see wrong color not 锯齿

<P align=right><FONT color=red>+3 RD币</FONT></P></DIV>



锯齿可以用 zigzag
点评回复

使用道具 举报

发表于 2007-6-21 14:01:48 | 显示全部楼层
Y0 U0 Y1 V0    Y2 U2 Y3 V2
一个clk延时后同步得到:(可能有多种情况产生延时)
U0 Y1 V0 Y2    U2 Y3 V2 Y4
Y和UV顺序交换:(7670有这种设置的寄存器)
Y1 U0 Y2 V0    Y3 U2 Y4 V2
这时候就一定会有锯齿。

from your opinion, his image will have a strange line on each end line.
because each line end will have one pixel from the next line start pixel.
But i can see this strange line one each line end.
点评回复

使用道具 举报

发表于 2007-6-21 14:20:28 | 显示全部楼层
<DIV class=quote><B>以下是引用<I>chengsean</I>在2007-6-21 14:01:48的发言:</B>
Y0 U0 Y1 V0    Y2 U2 Y3 V2
一个clk延时后同步得到:(可能有多种情况产生延时)
U0 Y1 V0 Y2    U2 Y3 V2 Y4
Y和UV顺序交换:(7670有这种设置的寄存器)
Y1 U0 Y2 V0    Y3 U2 Y4 V2
这时候就一定会有锯齿。

from your opinion, his image will have a strange line on each end line.
because each line end will have one pixel from the next line start pixel.
But i can see this strange line one each line end.
</DIV>


sensor 输出一行不一定是正好640像素,往往是多几个.
点评回复

使用道具 举报

 楼主| 发表于 2007-6-21 16:10:42 | 显示全部楼层
谢谢各位,问题已经解掉,是edge 的问题,把sharpness调低就好了
点评回复

使用道具 举报

 楼主| 发表于 2007-6-21 16:14:21 | 显示全部楼层
要做一个新的案子,不知道有哪位兄弟用过ov7720吗?请留下联系方式大家交流一下
点评回复

使用道具 举报

发表于 2007-6-21 16:22:04 | 显示全部楼层
to chengsean:
                    "micron sensor has bining mode to reduce this effect. "
                    bining mode???   我在micron的datasheet上没看到啊,可以细说么?[em12][em12][em12]
点评回复

使用道具 举报

发表于 2007-6-21 16:45:48 | 显示全部楼层
To  chiefhe
If you mean the output is bayer pattern format, it will make sense for more than 640
pixels.
Because the ISP will need more pixel to process.  
But the output is YUV format, this mean the sensor has processed by ISP.
It can't output more than 640 pixel or it will cause many trouble for backend ICs.
Many backend ICs don't sync by the horizontal signal when they receive the YUYV data.
The receive the data by the size of the image not the horizontal signal. If the ISP
output the pixel is not actually 640 pixel. The backend ICs will don't know how to
process it.

To wfdragon:
Sorry I typo It is "binning mode " in Micron 2M datasheet
点评回复

使用道具 举报

发表于 2007-6-21 17:09:59 | 显示全部楼层
<DIV class=quote><B>以下是引用<I>chengsean</I>在2007-6-21 16:45:48的发言:</B>
To  chiefhe
If you mean the output is bayer pattern format, it will make sense for more than 640
pixels.
Because the ISP will need more pixel to process.  
But the output is YUV format, this mean the sensor has processed by ISP.
It can't output more than 640 pixel or it will cause many trouble for backend ICs.
Many backend ICs don't sync by the horizontal signal when they receive the YUYV data.
The receive the data by the size of the image not the horizontal signal. If the ISP
output the pixel is not actually 640 pixel. The backend ICs will don't know how to
process it.

To wfdragon:
Sorry I typo It is "binning mode " in Micron 2M datasheet


</DIV>



谢谢!
反正我遇到过这种情况.
改变PCLK即可消除配对错误引起的锯齿.
有条件你可以自己做实验.
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-10-7 01:26 , Processed in 0.049315 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表