在DigitalMicrograph中对图像过滤的脚本支持 [英] Scripting Support For Image Filtering in DigitalMicrograph

查看:340
本文介绍了在DigitalMicrograph中对图像过滤的脚本支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以使用以下功能访问已配置的图像过滤器:

We can access a configured image filter with these functions:

  • 图像IFMApplyFilter(图像和未过滤,字符串filtername)
  • void IFMApplyFilterInPlace(图像和未过滤,字符串filtername)
  • 图像IFMApplyFilterToSeries(图像和未过滤,字符串filtername)
  • void IFMApplyFilterToSeriesInPlace(图像和未过滤的字符串 filtername)
  • Image IFMApplyFilter( Image& unfiltered, String filtername )
  • void IFMApplyFilterInPlace( Image& unfiltered, String filtername )
  • Image IFMApplyFilterToSeries( Image& unfiltered, String filtername )
  • void IFMApplyFilterToSeriesInPlace( Image& unfiltered, String filtername )

是否可以通过脚本直接配置图像过滤器?例如,我想通过组合默认的过滤器(例如"Hanning Window"和"Combined Filter")并更改过滤参数"Window Strength","Outer Radius(Nyquist)"等来创建过滤器.

Is there a way to configure an image filter directly by scripting? For example, I would like to create a filter by combining default filters such as "Hanning Window" and "Combined Filter", and changing filtering parameters "Window Strength", "Outer Radius (Nyquist)" and etc..

谢谢!

推荐答案

否,当前没有脚本命令可用于创建或配置过滤器.

No, there are currently no script commands to create or configure a filter.

此外,您可能已经注意到,已配置的过滤器存储在全局标记中,但这无济于事.标签仅在启动时才被读取,并且当前的过滤器列表在关闭时(覆盖所有更改)写入标签.

Also, you might have noticed that the configured filters are stored in the global tags, but this does not help much. The tags are read-in on start-up only, and the current list of filters is written to tags on shut-down (overriding any changes).

因此,剩下的就是将其添加为将来的GMS版本的功能请求.

So all that remains is to add this as a feature request for future GMS versions.

这篇关于在DigitalMicrograph中对图像过滤的脚本支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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