Scripting Support For Image Filtering in DigitalMicrograph

纵饮孤独 提交于 2019-12-08 07:17:03

问题


We can access a configured image filter with these functions:

  • Image IFMApplyFilter( Image& unfiltered, String filtername )
  • void IFMApplyFilterInPlace( Image& unfiltered, String filtername )
  • Image IFMApplyFilterToSeries( Image& unfiltered, String filtername )
  • void IFMApplyFilterToSeriesInPlace( Image& unfiltered, String filtername )

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..

Thanks!


回答1:


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).

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



来源:https://stackoverflow.com/questions/39049437/scripting-support-for-image-filtering-in-digitalmicrograph

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!