如何在C#中提取图像中的正面形状 [英] How to Extract Front Shape in an Image in C#

查看:100
本文介绍了如何在C#中提取图像中的正面形状的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以提取图像前面的任何形状?

Is it possible to Extract any Shape that's in front of an image?

假设我们有两个对象的图像,前面是1个,后面是另一个,背景是空白或透明.

let's say we have an image of two objects 1 in front, the other is behind and a blank or transparent background.

我们可以提取前面的图片并将其放置在新图片中吗?

can we extract the one in front and place it in a new image?

这可以通过检测额叶形状的边缘然后裁剪来完成吗?

can this be done by detecting edge of frontal shape and then crop it?

本文正在解决我的问题:

This article is doing something near to my question :

使用C#裁剪图像中的特定区域

但是我想完全自动化.

任何帮助将不胜感激.

谢谢.

推荐答案

我认为您无法完全自动化执行此操作;但是,也许有一些半自动化的方法,至少,您需要一些先验信息,例如可以将对象放置多远.这是我的一些建议.

I think you cannot do this fully automated; however, there are maybe some semi-automated ways, at least, you need some prior information such as how far your object can be placed. Here are some of my suggestions.

第一种方法(您具有实施学术论文的经验,并且具有有关对象位置深度的一些先验信息),

First way(you have experience in implementing academic papers, you have some prior information about depth of object's place),

  • 从互联网下载场景-深度图像数据库"
  • 获取数据库的平均值
  • 根据场景的GISt查询输入图像的K最近邻
  • 应用SIFT流以根据输入场景对齐数据库场景
  • 推断深度
  • 从图像中删除特定范围.

可以推断输入图像的粗略深度图.通过使用此方法,您将尝试推断输入图像的深度图,然后删除包含对象的特定深度范围.您可以查看论文[2]以获取更详细的说明.

It's possible to infer rough depth map of an input image. By using this, you'll try to infer depth map of input image then remove the certain depth range which includes your object. You can check the paper[2] for more detailed explanation.

http:/的示例深度图/www.the.me/wp-content/uploads/2013/09/z-depth_map_expanding_exif_more_powerful_post-processing_2n.jpg

第二种方式(假设:算法末尾允许人工输入.), -分割图像(您可以通过一点搜索找到最先进的算法) -选择要删除的轮廓.

Second way(assumption: human input is allowed at the end of algorithm.), - Segment the image(you can find state of the art algorithm with a little search) - Select the contour that you want to remove.

来自 http://vision.ece.ucsb .edu/segmentation/edgeflow/images/garden_edge.gif

参考:

[1]奥德·奥利瓦(Aude Oliva) 现场要旨

[1]Aude Oliva Gist of the Scene

[2] Karsch,K .;刘昌;姜善宝 IEEE模式分析与机器智能交易(TPAMI),2014年.

[2]Karsch, K.; Liu, C.; Kang, S.B. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2014.

这篇关于如何在C#中提取图像中的正面形状的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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