[High School Math] How to normalize/de-normalize a vector with the dimensions of an image ?

Think of it as scaling the template image to the size of the input image.
Let:

[Xt,Yt] = vector NtEt

[Wt,Ht] = template image size

[Xi,Yi] = vector NiEi

[Wi,Yi] = input image size

[Xn,Yn] = normalized vector

Since the vector is 2 dimensional, the norm of vector [Xt,Yt] with respect to the template image

[Wt,Ht] = [Xt/sqrt(Wt^2 +Ht^2 ), Yt/sqrt(Wt^2 +Ht^2 )] = [Xn,Yn]

To denormalize with respect to the input image [Wi,Wi], means to obtain [Xi,Yi] from [Xn,Yn]

So [Xi,Yi] = [Xn\*sqrt(Wi^2 +Hi^2 ), Yn\*sqrt(Wi^2 +Hi^2 )]

Essentially, you are finding the ratio between template size and image size Rti, where

Rti= sqrt(Wi^2 +Hi^2 )/sqrt(Wt^2 +Ht^2 ),

and scaling the vector by Rti.
by

## Related questions

0 like 0 dislike
I need to learn highschool level math or my employer will fire me. I'm stuck on an algebra problem in the pre-algebra section of my textbook.
0 like 0 dislike
How to prepare for an exam that requires atleast an 8th grade level in math to pass? (after years of neglecting the subject)
0 like 0 dislike
Where to start learning math as an engineer with only field related knowledge of mathematics?
0 like 0 dislike
Spm form 3 math questions on circle, can someone help me with this, i don’t exactly know how to do this, i guess the interior angle of pentagon is 540 degree but after ...
0 like 0 dislike