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:
@@ -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
|
||||
|
Reference in New Issue
Block a user