1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-17 15:26:00 +08:00

added computeOrientation and edgenms in structured_edge_detection

fixed typo

replaces Mat& to Input/OutputArray in public methods.

small fix.

small fixes
This commit is contained in:
lhelontra
2017-05-03 02:52:30 -03:00
parent 478baf937f
commit da280ac55d
3 changed files with 211 additions and 9 deletions

View File

@@ -59,10 +59,20 @@ int main( int argc, const char** argv )
createStructuredEdgeDetection(modelFilename);
pDollar->detectEdges(image, edges);
// computes orientation from edge map
Mat orientation_map;
pDollar->computeOrientation(edges, orientation_map);
// suppress edges
Mat edge_nms;
pDollar->edgesNms(edges, orientation_map, edge_nms, 2, 0, 1, true);
if ( outFilename.size() == 0 )
{
namedWindow("edges", 1);
imshow("edges", edges);
namedWindow("edges nms", 1);
imshow("edges nms", edge_nms);
waitKey(0);
}
else