How to convert binary image to grey scale in opencv java -


i have binary image output background subtractor method , want convert grey scale image apply cascade classifier in it. how can convert binary image grey scale?

unfortunately, can't (as turbo said before, information lost forever).

but had image before, fed background subtractor , didn't ? use instead.

also, cascadeclassifier not support masks (like got background subtractor) directly.

if want use background subtractor restrict search rois, you'll need call findcontours() on mask, bounding rects contours, filter bit size, , apply cascadeclassifier on remaining rois.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -