Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why divided by f3dArea in IMT computation? #82

Open
Qinja opened this issue Aug 16, 2022 · 1 comment
Open

Why divided by f3dArea in IMT computation? #82

Qinja opened this issue Aug 16, 2022 · 1 comment
Labels

Comments

@Qinja
Copy link

Qinja commented Aug 16, 2022

In line 1542 of the file [UVAtlas\isochart\imtcomputation.cpp] the code is :
for (size_t ii = 0; ii < IMT_DIM; ii++) { (*pfIMTArray)[ii] /= f3dArea; }

But the first formula in page 4, section 3.3 in the document "Signal Specialized Parameterization", IMT should be multiplied by the area of the triangle.
image

My questions:

  1. How to understand the difference between paper and code practice.
  2. When I call UVAtlasComputeIMTFromTexture, how do I get the IMT array converted to Eh(S) which is finally used to measure the stretch of the signal.

Thanks for every answer.

@Qinja
Copy link
Author

Qinja commented Aug 16, 2022

As per my understanding and guesswork.
The calculation process of Eh(S) is:
image
where
image
where
image

So what should be the value represented by the array obtained when I call the “UVAtlasComputeIMTFromTexture”, is that "Mh(▲i)" or "Mh(si, ti)" , or neither.
And why do divide before output these values in line 1542?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants