文件名称:Diagonal and edge
介绍说明--下载内容来自于网络,使用问题请自行百度
B正在做一个关于图像理解方面的研究,她的目标是识别图像中的轮廓。当前阶段,她希望能够识别正方形。图像用一个矩阵表示,矩阵的每个元素对应于图像中的一个像素点,值为0或1,0表示背景,1表示前景。需要寻找的正方形必须满足线宽为单像素,且大小至少为2x2。她希望你能帮她找出图像中满足如下条件的两类正方形的个数:
正方形的边与矩阵边缘平行;
正方形的边与矩阵对角线平行;(B is doing a research on image understanding, and her goal is to identify the outline in the image. At this stage, she wants to be able to identify the square. The image is represented by a matrix. Each element of the matrix corresponds to a pixel in the image, with a value of 0 or 1, 0 for the background and 1 for the foreground. The squares to be searched must meet the line width of a single pixel, and the size is at least 2x2. She wants you to help her find the number of two types of squares in the image that meet the following conditions:
The edge of a square is parallel to the edge of a matrix.
The edge of a square is parallel to the diagonal of the matrix;)
正方形的边与矩阵边缘平行;
正方形的边与矩阵对角线平行;(B is doing a research on image understanding, and her goal is to identify the outline in the image. At this stage, she wants to be able to identify the square. The image is represented by a matrix. Each element of the matrix corresponds to a pixel in the image, with a value of 0 or 1, 0 for the background and 1 for the foreground. The squares to be searched must meet the line width of a single pixel, and the size is at least 2x2. She wants you to help her find the number of two types of squares in the image that meet the following conditions:
The edge of a square is parallel to the edge of a matrix.
The edge of a square is parallel to the diagonal of the matrix;)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
Diagonal and edge.txt | 2504 | 2018-03-29 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.