Coder Social home page Coder Social logo

Comments (16)

jsjy1 avatar jsjy1 commented on June 23, 2024 1

I probably got it! Thanks for your answer!

from apap-image-stitching.

EadCat avatar EadCat commented on June 23, 2024

Hello.
You're right. According to the formula (8), np.sqrt is optional(redundant).
In my opinion, however, this is an MSE or RMSE difference(scale difference), not a major part.
Also, due to the problem of scale normalization(related to hyperparameters) in experience, it may have different results.

from apap-image-stitching.

jsjy1 avatar jsjy1 commented on June 23, 2024

Thanks for your reply, now here I understand, and I have a new question.

Hello. You're right. According to the formula (8), np.sqrt is optional(redundant). In my opinion, however, this is an MSE or RMSE difference(scale difference), not a major part. Also, due to the problem of scale normalization(related to hyperparameters) in experience, it may have different results.

from apap-image-stitching.

jsjy1 avatar jsjy1 commented on June 23, 2024

When performing local transformations, the direct understanding is to mesh SRC, and the points in each mesh share a local transformation array, and each distorted square after the transformation shares a reverse local transformation array (as shown in each green grid in the figure).
image

from apap-image-stitching.

jsjy1 avatar jsjy1 commented on June 23, 2024

But reverse warp is generally used(ensure that all points are mapped), and it does in your code. So the canvas is meshed,
and each regular small square in the canvas corresponds to a local transformation array (as shown in the figure).
That is, the grid of the image after warp is regular, while the mesh before warp is distorted.

image

1.Am I right to understand that?

from apap-image-stitching.

jsjy1 avatar jsjy1 commented on June 23, 2024

This is the warped SRC in the canvas, and each adjacent point with the same pixel value in the figure corresponds to the same local transformation array

from apap-image-stitching.

EadCat avatar EadCat commented on June 23, 2024

Well, According to the code, I divided the source image regularly into the meshes and warp the superpixels using the calculated local homography.
Therefore, the result is warped by local homography.
And I guess that you visualized the warped source(warped by local homographies) and divided it into the regular meshes.
I'm not sure your way, It is just a guessing.
Your visualization is interesting.

from apap-image-stitching.

jsjy1 avatar jsjy1 commented on June 23, 2024

Aha? In this diagram, I just visualized the meshing in your code.=。=
And doesn't the next line of your code indicate the mesh of the canvas instead of the source image? =。=

mesh = get_mesh((final_w, final_h), mesh_size + 1)

from apap-image-stitching.

jsjy1 avatar jsjy1 commented on June 23, 2024

Doesn't "final_xx" indicate the size of the canvas?

from apap-image-stitching.

EadCat avatar EadCat commented on June 23, 2024

As you know, Since the transformation is processed by the inverse homography, I think that mesh visualization should be on the source image.

src_homography

This is just my way of implementation and I would appreciate it if you could show me the APAP code that warps from source to target in Python.

from apap-image-stitching.

EadCat avatar EadCat commented on June 23, 2024

My description above should be fixed. right?

from apap-image-stitching.

jsjy1 avatar jsjy1 commented on June 23, 2024

My description above should be fixed. right?

Sorry, I can't understand I can't understand this sentence.

from apap-image-stitching.

EadCat avatar EadCat commented on June 23, 2024

Well, According to the code, I divided the source image regularly into the meshes and warp the superpixels using the calculated local homography. Therefore, the result is warped by local homography. And I guess that you visualized the warped source(warped by local homographies) and divided it into the regular meshes. I'm not sure your way, It is just a guessing. Your visualization is interesting.

I mean this description.

from apap-image-stitching.

jsjy1 avatar jsjy1 commented on June 23, 2024

My description above should be fixed. right?
=.=What does ”fixed“ mean?

from apap-image-stitching.

jsjy1 avatar jsjy1 commented on June 23, 2024

As you know, Since the transformation is processed by the inverse homography, I think that mesh visualization should be on the source image.

src_homography

This is just my way of implementation and I would appreciate it if you could show me the APAP code that warps from source to target in Python.

Yes, I agree with your statement. And I can't write APAP code that warps from source to target.

from apap-image-stitching.

EadCat avatar EadCat commented on June 23, 2024

My description above should be fixed. right?
=.=What does ”fixed“ mean?

never mind about this.

from apap-image-stitching.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.