Skip to content

CV_Bool support is not complete #25890

Open

Description

@asmorkalov

Describe the feature and motivation

Currently OpenCV 5.x has 2 options for flags/bools:

  • cv::Mat with CV_Bool type
  • cv::Mat with CV_8U type or std::vector treated as bit array.

cv::norm does not support CV_Bool as input
cv::norm interprets CV_8U matrix as regular integer matrix for NORM_INF and NORM_2 and as bit array for NORM_HAMMING
Also CV_Bool is not supported by cv::Hamming, HAL functions.

Options:

  • Add CV_Bool support for Hamming, NORM_HAMMING case and all related functions
  • Added a way to squeeze / unsqueeze the bit arrays from/to CV_Bool type.

Additional context

No response

Activity

  1. added this to the 5.0 milestone on Jul 9, 2024
  2. asmorkalov commented on Jul 9, 2024

    @asmorkalov
    ContributorAuthor

    @vpisarev @dkurt @mshabunin @opencv-alalek please provide your thoughts.

  3. opencv-alalek commented on Jul 10, 2024

    @opencv-alalek
    Contributor

    Name should be changed to avoid violation of used naming rules: CV_BOOL

  4. modified the milestones: 5.0, 5.0-release on Sep 28, 2024
  5. modified the milestones: 5.0-release, 5.1 on May 22, 2026
  6. modified the milestones: 5.1, 5.2 on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions