我可以在C#项目中使用Vlfeat库吗? [英] Can I Use Vlfeat Library In C# Project?

查看:86
本文介绍了我可以在C#项目中使用Vlfeat库吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在开始处理图像处理...我有一个疑问....我可以在我的c#项目中使用vlfeat库函数.. ??如果是的话怎么样......





因为我听说vlfeat是用c语言开发的...

I started working on imageprocessing now...i have a doubt....Can i use a vlfeat library function in my c# project..??..if yes how...


bec i heard tht vlfeat is developed in c language...

推荐答案

你最能可能使用c#中的vlfeat,[但]你必须使用p / invoke - 如果没有c#图像处理库可以提供你需要的东西,它可能是你唯一的选择。



如果vlfeat c api对p / invoke很棘手,你可以使用'中间层',即将你想要的变换/函数聚合成'c'dll并导出一个更简单的接口以获得好处从c#通过p / invoke调用 - 所以你最终得到一个'堆栈'就像我在下面显示的那样



c# - 调用中间层

使用p / invoke

- - - - - - - - - - - - - -

中间层 - 聚合

of vlfeat功能为

可用的业务功能

i n'c'dll

- - - - - - - - - - - - - -

vlfeat api raw functions
you can most likely use vlfeat from c#, [but] you'd have to use p/invoke - if there's no c# image processing library that gives you what you need, it may be your only choice.

If the vlfeat c api is tricky to p/invoke, you could use a 'middle layer', ie, aggregate the transforms/functions you want into a 'c' dll and export a simpler interface for the benefit of calling via p/invoke from c# - so you end up with a 'stack' like I've shown below

c# - calls middle layer
using p/invoke
- - - - - - - - - - - - - -
middle layer - aggregate
of vlfeat functions into
useable business functions
in 'c' dll
- - - - - - - - - - - - - -
vlfeat api raw functions


这篇关于我可以在C#项目中使用Vlfeat库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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