![]() ![]() Mat whole_image=imread("D:\\ImagesForTest\\lena.jpg") ![]() I have got an image like below got from grabcut algorithm, now I want to apply edge smoothening to the image, as you can see the image is not smooth. I want help whether if I am going in right way, or what am I missing? ![]() I get Assertion failed (src.channels() = 1 & func != 0) in countNonZero ERROR while doing dilateĬv::blur(blurred, blurred, cv::Size(3.0,3.0)) Works fine upto here I am getting perfect edge maskĬv::dilate(detected_edges, blurred, result) Steps took from here int lowThreshold = 10.0 ĬvtColor( result, src_gray, CV_BGR2GRAY ) Ĭv::blur( src_gray, detected_edges, cv::Size(5,5) ) Ĭv::Canny( detected_edges, detected_edges, lowThreshold, lowThreshold*ratio, kernel_size ) I am trying to smooth output image edges using opencv framework, I am trying following steps. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |