我想创建的.NET应用程序,接受一个图像,扫描文件夹中的所有图像,并找到那些看起来很像它。
有什么建议我应该从哪里开始吗?有没有免费/开源库?
发布于 2012-01-19 01:02:35
您可以使用AForge.NET。ExhaustiveTemplateMatching方法就是这样做的。文档中有一个示例:
// create template matching algorithm's instance
// use zero similarity to make sure algorithm will provide anything
ExhaustiveTemplateMatching tm = new ExhaustiveTemplateMatching( 0 );
// compare two images
TemplateMatch[] matchings = tm.ProcessImage( image1, image2 );
// check similarity level
if ( matchings[0].Similarity > 0.95f )
{
// do something with quite similar images
}https://stackoverflow.com/questions/8914151
复制相似问题