Skip to content

Structured Edge Detection: Model conversion from .mat to .yml #1282

@greenflash1357

Description

@greenflash1357

I have used the Matlab script opencv_contrib/modules/ximgproc/tutorials/scripts/modelConvert.m to convert a model. Loading the model when creating a pointer to a StructuredEdgeDetection works, but detectEdges() returns blurry, foggy, image-unrelated edge maps.

Is the script outdated? Is there a maximum size for models? The converted .yml file looks very similiar to the provided opencv_extra/testdata/cv/ximgproc/model.yml.gz except for a lot more edgeBoundaries and edgeBins.

The issue seems not to be related to #716. I have tried converting from BGR2RGB.

System information
  • OpenCV 3.1
  • Windows 64 Bit
  • Visual Studio 2015
  • Matlab R2017a
Steps to reproduce

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