Unary - operator bug for single column matrix (Bug #2447)


Added by nemerle - over 12 years ago. Updated over 12 years ago.


Status:Done Start date:2012-10-16
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:core
Target version:2.4.3
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

This bug is related to my previously canceled ticket ( #2443 )

Following code correctly writes out the first matrix,
and fails on the second one.

#include <iostream>
#include <opencv2/core/core.hpp>

int main(int argc,char **argv)
{
    cv::Mat1f tt2=cv::Mat1f::ones(1,4);
    std::cout<< -tt2;
    std::cout.flush();
    tt2=cv::Mat1f::ones(4,1);
    std::cout<< -tt2;
    return 0;    
}


Issue hierarchy

Bug #2443: cv::exp error with single column matrixDoneVadim Pisarevsky

Bug #2447: Unary - operator bug for single column matrixDoneVadim Pisarevsky


Associated revisions

Revision f5742e6c
Added by Vadim Pisarevsky over 12 years ago

fix bug #2447 - unary operator bug for single column matrix

History

Updated by Daniil Osokin over 12 years ago

Yes, I can reproduce this on current master. But on release 2.4.2 version it works.
Thanks for reporting, we will check it.

Updated by Vadim Pisarevsky over 12 years ago

  • Target version changed from 3.0 to 2.4.3
  • Status changed from Open to Done

Also available in: Atom PDF