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
Image 如何从二值图像中获取像素坐标?_Image_Binary_Coordinates_Pixels - Fatal编程技术网

Image 如何从二值图像中获取像素坐标?

Image 如何从二值图像中获取像素坐标?,image,binary,coordinates,pixels,Image,Binary,Coordinates,Pixels,如何从二值图像(黑白图片)中获得所有黑色像素的坐标? 我想得到可读的坐标,比如:1x1y;50x60y;等等。。。 我应该使用什么工具?您可以使用imtool命令显示已光栅化图像的坐标?如果是这样的话,您可以简单地分别为x和y行和列使用两个for循环的控制结构。

如何从二值图像(黑白图片)中获得所有黑色像素的坐标? 我想得到可读的坐标,比如:1x1y;50x60y;等等。。。
我应该使用什么工具?

您可以使用imtool命令显示已光栅化图像的坐标?如果是这样的话,您可以简单地分别为x和y行和列使用两个for循环的控制结构。