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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -