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
Post a Comment