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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:05:22+00:00 2026-06-09T10:05:22+00:00

Below transformation is what I want to do. For each tile in source image,

  • 0

Below transformation is what I want to do.

For each tile in source image, I know the coordinate of each corner, and I know the coordinate of each corresponding corner in the output image, so I can call cvWarpPerspective to warp each tile and then connect the quadrangles together to get the final output image.

Can cvRemap do this in one transformation? If yes, how do I construct the map (mapx, and mapy) from the coordinate that I have so to pass to the cvRemap function? I’ve searched the EmguCV documentation but could not find a cvRemap example.

The source image

The output image

  • 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-09T10:05:24+00:00Added an answer on June 9, 2026 at 10:05 am

    I have no experience with emgu (actually I have a low esteem for it) but I can explain about remap and warpPerspective. It may help you find the corresponding functions in emgu.

    remap takes an input picture, and a coordinate relocation map, and applies it to the output. The map stores info like this: take pixel (1, 4) and move it to (3, 5). The pixels that are not defined in the map are filled with 0, or other value, depending on the extra parameters. Note that it also uses some interpolation for smooth results.

    warpPerspective takes a geometric perspective transform, calculates internally the map for the transform, and then calls remap() to apply it to the input. Actually, many functions in OpenCV use remap, or can use it. warpAffine, lens correction, and others build their custom maps, then call remap to apply them.

    The perspective transform is defined by a 3.3 matrix H. So, each coordinate in the input image will be shifted according to the H matrix:

                [ h11 h12 h13 ]    [ x ]
    [x' y' 1] = [ h21 h22 h23 ] *  [ y ]
                [ h31 h32 h33 ]    [ 1 ]
    

    warpPerspective applies the inverse transform for each point in the destination image, to find out where in the source image is the pixel that should be moved in, and stores that info in the map.

    You can take that code and make a custom function in your app, but I do not know how easy is to do it in C#. C++ would have been a piece of cake.

    Final note: I have used the term map, although there are two map parameters in the remap() function. And to be more confusing, they can have completely different meanings.

    • First valid combination is where mapx contains the coordinate transforms of the x coordinate, in a width-by-height image, one channel. mapy is the corresponding map for y dimension. The coordinates are floating-point values, reflecting the fact that coordinate transforms from one image to another do not map exactly to integer values. By example, pixel (2, 5) may map to (3.456, 7.293)

    • second possibility is to store the integer coordinates in mapx, for both x, and y, in two channels, and keep an interpolation weights table in the second parameter, mapy. It is usually far easier to generate the first format, however the second is faster to process. To understand the sencod format you should read the OpenCV sources, because it’s not documented anywere.

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

Sidebar

Related Questions

I know I'm missing something here. In the XSLT transformation below, the actual result
The way my application is structured, each component generates output as XML and returns
I have an XML like below: <TRANSFORMATION DESCRIPTION = NAME =RTR_LRC_RF_REFL_Unproc OBJECTVERSION =1 REUSABLE
i want to display an image besides the text in table cell. i have
I'm using web.config transformation as described in the below post in order to generate
During transformation, who I can combine one node into another. for example, when Attributes/Attribute/Type=ComplexAttr
I tried to use a XSLT transformation (below) to a RSS with this type
Does somebody know how to achieve this with XSL-FO transformation? The question details should
I need to have XSLT for the input below. The objective of this transformation
I want to do a full rotation, but with an image swap half way

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.