Skip to content

the crash of pca example(introduction_to_pca) in opencv 3.2  #9030

@vvck

Description

@vvck
System information (version)
  • OpenCV = 3.2
  • Operating System / Platform => Windows 64 Bit
  • Compiler => Visual Studio 2013
Detailed description

the example of pca can take a crash, there is wrong row and col when you get value of pca eigenvalues,

Steps to reproduce

file: opencv\sources\samples\cpp\tutorial_code\ml\introduction_to_pca\introduction_to_pca.cpp
line76: eigen_val[i] = pca_analysis.eigenvalues.at(0, i);
should change to
eigen_val[i] = pca_analysis.eigenvalues.at(i, 0);

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