Skip to content

3D view, the dimension 2 load file failed #5

@oeluoz

Description

@oeluoz

Hi there! Thanks for your gorgeous project.
I run this project with
Opencv 4.5.4 & MSVC 2017
after change the view 3D, i open the examples imgs, but the program crashed, the log info is
OpenCV(4.5.4) Error: Assertion failed ((unsigned)i0 < (unsigned)size.p[0]) in cv::Mat::at
the crash happened at
void My::Parse::parseImage(int dimension,QListcv::Mat& list,QListMy::Shape3D*& shapes,QList<Label3D*>& labels){
line 407
if(dimension==2){
cv::Mat mat3=cv::Mat(list.length(),list[0].rows,CV_8UC1);
for(int i=0;i<mat3.rows;i++){
for(int j=0;j<mat3.cols;j++){
mat3.at(i,j)=list[i].at(list[0].rows-j,labels[2]->zindex);
}
}
i want to know is it possible there is a bug? Or just the compatibility problem of opencv?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions