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

  • Home
  • SEARCH
  • 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 6903099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:52:59+00:00 2026-05-27T07:52:59+00:00

I have two images in opencv: Image A and Image B . Image A

  • 0

I have two images in opencv: Image A and Image B.

Image A is output frame from camera.
Image B is alpha transparent image obtained by masking one image.
Before masking Image B it is warped with cvWarpPerspective()

  • I tried cvAddWeighted() – It looses intensity when you give alpha and beta value
  • I tried aishack – Even here you looses overall intensity of Output Image
  • I tried silveiraneto.net – Not helpful in my case

Please help me out with something where I don’t lose intensity in the output image after blending.

Thanks in advance

  • 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-05-27T07:53:00+00:00Added an answer on May 27, 2026 at 7:53 am

    I finally got the answer.It consist of 5 steps….

    Step – 1

    cvGetPerspectiveTransform(q,pnt,warp_matrix); 
    //where pnt is four point x and y cordinates and warp_matrix is a 3 x 3 matrix
    

    Step – 2

    cvWarpPerspective(dst2, neg_img, warp_matrix,CV_INTER_LINEAR)
    //dst2 is overlay image ,neg_img is a blank image 
    

    Step – 3

    cvSmooth(neg_img,neg_img,CV_MEDIAN); //smoothing the image
    

    Step – 4

    cvThreshold(neg_img, cpy_img, 0, 255, CV_THRESH_BINARY_INV);
    //cpy_img is a created image from image_n
    

    Step – 5

    cvAnd(cpy_img,image_n,cpy_img);// image_n is a input image
    cvOr(neg_img,cpy_img,image_n);
    

    Output – image_n (without loosing intensity of input image)

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

Sidebar

Related Questions

I have two images per product, one is a simple image, and one is
I have two images next to each other in HTML. One image is taller
i am new to opencv and i have loaded two chessboard(http://kvisit.com/amaAY)images one next to
I have two images, one background image (img_back.png) and other is an image (person.jpg),
I have two images overlayed and i copy pixels from bottom image to top
We have two images with transparent sections that each have a map and separately
Simple idea: I have two images that I want to merge, one is 500x500
Imagine you have two images A and B, and a third grayscale image T.
I have two tables, content and images (and a ContentImages table for the one
I have two images on a page. The first image has position:relative and the

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.