Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何找到png图像';使用objective-c的边界?_Objective C_Image_Image Processing - Fatal编程技术网

如何找到png图像';使用objective-c的边界?

如何找到png图像';使用objective-c的边界?,objective-c,image,image-processing,Objective C,Image,Image Processing,这是UIImage,维基百科图标, 但它是一个png文件,但我想找到像这样的图像边界(对不起,难看的图形): 是否有任何现有的算法可以让我找到图像? 以下是假设: 1.所有背景都是透明的。 2.图像必须是一个大片段 谢谢。你在找什么。我自己没有试过,但它似乎能解决你的问题。这是我的建议 我不确定这是否能解决你的问题 UIImage* edge = [myImage edgeDetectionWithBias:0];

这是UIImage,维基百科图标,

但它是一个png文件,但我想找到像这样的图像边界(对不起,难看的图形):

是否有任何现有的算法可以让我找到图像? 以下是假设: 1.所有背景都是透明的。 2.图像必须是一个大片段

谢谢。

你在找什么。我自己没有试过,但它似乎能解决你的问题。这是我的建议

我不确定这是否能解决你的问题

UIImage* edge = [myImage edgeDetectionWithBias:0];