首先轮廓(contour)的定义?
轮廓的定义有很多种, 也就是包围物体的边缘. 不管是哪种定义, 轮廓是与边缘紧密联系的. 那
那什么是边缘(edge)?
Simple answer: discontinuities in intensity.
边缘的分类?
- Step edge
- Ramp edge
- Ridge edge
- Roof edge
边缘的描述?
• Edge descriptors
– Edge normal: unit vector in the direction of maximum intensity change.
– Edge direction: unit vector along edge (perpendicular to edge normal).
– Edge position or center: the image position at which the edge is located.
– Edge strength or magnitude: local image contrast along the normal.
– Edge normal: unit vector in the direction of maximum intensity change.
– Edge direction: unit vector along edge (perpendicular to edge normal).
– Edge position or center: the image position at which the edge is located.
– Edge strength or magnitude: local image contrast along the normal.
边缘的获取?
1.Sobel 算子
#include <opencv2/opencv.hpp>
#include <iostream>
int main(int argc, char ** argv)
{
if(argc < 2)
return -1;
cv::Mat img = cv::imread(argv[1],0);
cv::Mat dst1 , dst2, dst3 ,dst;