简体   繁体   English

将scipy.ndimage.filters从Python移植到C ++或C#

[英]Porting scipy.ndimage.filters correlate1d from Python to C++ or C#

I need to port some code from python (a prototype which i haven't written), into C# and C++. 我需要将python(我尚未编写的原型)中的某些代码移植到C#和C ++中。 The original python code makes use of scipy.ndimage.filters correlate1d with the mode = "wrap". 原始的python代码使用scipy.ndimage.filters与mode =“ wrap” 关联 As far as I understood, wrap is a manner of normalizing the output of the correlation. 据我了解,自动换行是一种规范相关输出的方式。

Do you know of any C++ (or C#/.Net) available function/library that would perform such an algorithm (it should provides a really similar output), or do you know of what the algorithm in wrap mode corresponds to ? 您是否知道执行这种算法的任何C ++(或C#/。Net)可用函数/库(它应该提供非常相似的输出),或者您知道自动包装模式下的算法对应于什么? I could code the algorithm as a solution, but I have no idea what is the formula behind the wrap mode. 我可以将算法编码为解决方案,但是我不知道自动换行模式背后的公式是什么。

@JoeKington评论了这个问题,给出了指向scipy的github分支的链接的问题,并使用了函数 relatede1d 的C代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM