我们可以生成“foveated Image”吗?在Mathematica [英] Can we generate "foveated Image" in Mathematica

查看:190
本文介绍了我们可以生成“foveated Image”吗?在Mathematica的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Foveated imaging 是一种数字图像处理技术,其中图像分辨率或数量细节根据一个或多个固定点在整个图像上变化。固定点表示图像的最高分辨率区域,并且对应于眼睛视网膜的中心,即中央凹。

"Foveated imaging is a digital image processing technique in which the image resolution, or amount of detail, varies across the image according to one or more "fixation points." A fixation point indicates the highest resolution region of the image and corresponds to the center of the eye's retina, the fovea."

我想使用这样的图像来说明人类的视力,波纹管图显示左眼的相对敏锐度(水平部分),以度为中心(维基百科):

I want to use such image to illustrate humans visual acuity, The bellow diagram shows the relative acuity of the left human eye (horizontal section) in degrees from the fovea (Wikipedia) :

有没有办法在Mathematica中使用图像处理功能创建一个foveated图像?

推荐答案

以下几行可能对您有用。过滤细节应根据您​​的喜好进行调整。

Something along the following lines may work for you. The filtering details should be adjusted to your tastes.

lena = ExampleData[{"TestImage", "Lena"}]

ImageDimensions[lena]

==> {512, 512}

mask = DensityPlot[-Exp[-(x^2 + y^2)/5], {x, -4, 4}, {y, -4, 4}, 
                    Axes -> None, Frame -> None, Method -> {"ShrinkWrap" -> True}, 
                    ColorFunction -> GrayLevel, ImageSize -> 512]

Show[ImageFilter[Mean[Flatten[#]] &, lena, 20, Masking -> mask], ImageSize -> 512]

这篇关于我们可以生成“foveated Image”吗?在Mathematica的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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