java - What are the parameters passed to cvFindContours() in JavaCV? -


please can 1 explain cvfindcontours method , parameters required?

for example, here's code using opencv:

hierarchy = cv2.findcontours(thresh, cv2.retr_list, cv2.chain_approx_simple) 

please can 1 explain how write using javacv?

as comments mentioned mohammad 3 parameters header_size, mode , method. can use method follows

 iplimage src = cvloadimage(path);//hear path actual path image iplimage grayimage = iplimage.create(src.width(), src.height(), ipl_depth_8u, 1); cvcvtcolor(src, grayimage, cv_rgb2gray); cvthreshold(grayimage, grayimage, 127, 255, cv_thresh_binary); cvseq cvseq=new cvseq(); cvmemstorage memory=cvmemstorage.create(); cvfindcontours(grayimage, memory, cvseq, loader.sizeof(cvcontour.class), cv_retr_list, cv_chain_approx_simple); 

hope might understand method.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -