Skip to content

OutputArray::create fails for empty fixed type Mat_<T> when allowTranspose #13772

Closed

Description

@prclibo

Code piece:

cv::Mat1d mat;
cv::OutputArray o(mat);
o.create(3, 5, CV_64F, -1, true);

which will evoke matrix_wrap.cpp#L1295 due to fixed type.

I met this issue because projectPoints create image_point by setting allowTranspose (https://github.com/opencv/opencv/blob/master/modules/calib3d/src/calibration.cpp#L3558). Thus I can not do

cv::Mat1d image_points;
cv::projectPoints(..., image_points);

Can we further improve the logic around matrix_wrap.cpp#L1295

Activity

  1. changed the title [-]`OutpuArray::create` fails for empty fixed type Mat_<T>[/-] [+]OutpuArray::create fails for empty fixed type Mat_<T> when allowTranspose[/+] on Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions