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 9181901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:25:56+00:00 2026-06-17T18:25:56+00:00

I work on Win7 x64, with openCV and Visual Studio 2010, programming in c++.

  • 0

I work on Win7 x64, with openCV and Visual Studio 2010, programming in c++.
I want copying an image (call it image) to a rectangular area of another image (call it RR_image). This area, however, is rotated.

here is image:

enter image description here

and here is RR_image:
enter image description here
(as you see, I’ve already rotated first image)

I would copy first image in red rectangle.

How many and what ways are there to do this?

I know about ROI and: img1.copyTo(img2.rowRange(...), img2.colRange(...));

Thanks!

  • 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-17T18:25:57+00:00Added an answer on June 17, 2026 at 6:25 pm

    The main problem is that OpenCV doesn’t support transparency in images, which is what you need to accomplish that task in an easy way.

    So, one way to do it is to write a custom function/method to iterate over the rotated (source) image copying the pixels to the destination image, while ignoring the background pixels (a specific shade of gray, for instance). This approach is very limited, though.

    EDIT:

    OpenGL can certainly do the job, but it brings a complexity that you probably don’t want on your hands right know. Fortunately there are other alternatives like ImakeMagick, which provides a C++ API through ImageMagick++ and it can certainly handle transparent images. Take a look at A Gentle Introduction to Magick++.

    The QImage class from Qt can probably do this as well.

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

Sidebar

Related Questions

I just installed visual studio 2010 on my win7 32 bit computer and i
I want to setup a Win7 virtual machine to develop using Visual Studio 2008
Using C# in .NET 4.5 in Visual Studio 2012 Ult on Win7 x64. I’m
Came to work this morning, my PC (Win7 x64) had force rebooted by Windows
I am new to java programming, Ubuntu, and Eclipse (usually work on win7 ultraedit/monodevelop/visualstudios
I had a win7 x64 box with a local Sharepoint 2010 installed on an
work on SQL Server 2000. want to Automated Email Notifications using SQL Server Job
I work on win7 and need to allocate 2 buffers using malloc ,each of
I have a problem when deploying my application to Win7 x64 machines. I reference
I am building an existing MFC application with Visual Studio 2012. The application uses

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.