It's not correct with line 223. We may have binary descriptors of keypoints found in an image, but image descriptor (vocDescriptor in API suggested here) is a normalized histogram (frequency of keypoint descriptors relating to BOW cluster's centers). So I would say that descriptorType() is CV_32FC1 (as we have now in BOWImgDescriptorExtractor).