android - How can i segment an image using opencv4android -


i developing application on android platform. app needs capture image using camera, , analyse captured image see red , blue color ends , next step make contour arround twi shape cirle , triangle.(already done ) have move next step : segmentation can me how segment images. ideas?

assuming c contour:

rect roi = imgproc.boundingrect(c); mat newmat = mrgba.submat(roi); bitmap bmp1 = bitmap.createbitmap(newmat.width(), newmat.height(),             bitmap.config.argb_8888); utils.mattobitmap(newmat, bmp1); 

bmp1 should hold image want.

this give rectangular image shows bounding area of original object, if circle have detected, circle plus other parts of image contained in bounding box. if just want detected object , have rest of content transparent harder problem.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -