Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8524781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:47:08+00:00 2026-06-11T07:47:08+00:00

I try to pass a Mat_<float> as the destination for cv::projectPoints . Whenever I

  • 0

I try to pass a Mat_<float> as the destination for cv::projectPoints. Whenever I do this at runtime _OutputArray::create complains, that the type is fixed (fixedType() and fixedSize()).

Sadly the doc does not really explain these notions let alone describe what obstacles one has to jump over to use instantiate OutputArray (which is a highly problematic converter class).
Could someone shed some light about the antics of OpenCV and how to get it working?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T07:47:09+00:00Added an answer on June 11, 2026 at 7:47 am

    The OutputArray constructor that takes a Mat_<T> sets the FIXED_TYPE flag, since it is predetermined (it’s float in your case). Since that implies a single-channel matrix and projectPoints wants to create a two-channel output, it fails. Use Mat_<Vec2f> or something equivalent.

    Contrary to what vasile said, you can use Mat_<T> and also Matx (which has both fixed size and type) as an OutputArray (there are explicit constructors for Matx and Mat_, it’s just that those constructors set flags that some things can’t be changed, so functions that do try to change them will fail).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to pass std::log as a functional argument, but it seems that there
I try to pass parameter <xsl:param name=current_item /> Before that I sent parameter as
Whenever I try to pass a variable through url with the l() function like:
I try to pass a bundle between two activities. This bundle contains a Serializable
I made this test code to try to pass the pthread_t of thread2 to
Passing parameters works with 2 normal activities, but when I try to pass this
It works if I use loadMovie(http://graph.facebook.com/100000108805716/picture, imageLoader2); but as I try to pass that
If I try to pass a URL to curl that contains brackets, it fails
My compiler behaves oddly when I try to pass a fixed-size array to a
I am calling this function: val(array[i][index]) when i try to pass a time stamp

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.