Skip to content

cv::ximgproc::createSuperpixelSEEDS->getLabels(labels) return an incorrect Mat data #2802

@JaminChens

Description

@JaminChens
System information (version)
Detailed description

When using SuperpixelSEEDS->getLabels(labels) to return labels mat data, I have receive an incorrect data. The actually NumberOfSuperpixels() is 48,but the numberofSuperpixels in labels is half of it(24). Half of the points in the labels mat are 0. Meanwhile,this return value is normal in python.

Steps to reproduce
Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    answers.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions