[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 866 KB, 4107x3080, yaw_pitch_roll.png [View same] [iqdb] [saucenao] [google]
9198104 No.9198104 [Reply] [Original]

Given an image of a face, like picrelated, and I rotate the image by the center of the face by X degrees, how much does pitch change?

>> No.9198121
File: 46 KB, 691x677, toosmarttolive.jpg [View same] [iqdb] [saucenao] [google]
9198121

i think it might be
X = sum (w1*yaw + w2* pitch + w3*roll)
where w1 is
yaw/(yaw+roll+pitch)
and so on, solve for pitch.
but that seems too simple...

>> No.9198965

>>9198121
why did i ever post this photo in here..

>> No.9199067

It doesn't. Just move the system of coordinates with the face.

>> No.9199100

>>9198104

when you rotate you need to rotate around an axis liek your pic releated. cant rotate around a point

>> No.9199264
File: 216 KB, 1465x546, IMG_2109.png [View same] [iqdb] [saucenao] [google]
9199264

I'm projecting into 2d and rotating, the equivalent in 3d is creating a new axis from viewer direction through face and rotating around that

>> No.9199268

If you rotate it around the roll axis, the pitch won't change at all.

>> No.9199286
File: 92 KB, 900x412, new_york_times_are_idiots.jpg [View same] [iqdb] [saucenao] [google]
9199286

>>9198104
to clarify what I'm doing, I have an image of a face that has been rotated such that the the 3d face's z axis is vertical. I also have the original pitch, roll, and yaw, and the angle by which the image was rotated. I want to know in which direction the face is looking now that the image has been rotated.

>> No.9199311

>>9199286

you are not even telling what coordinate system. z can be any axis , left hand , right hand, counter clock wise. in most sci contexts the the z axis is already vertical

>> No.9199315
File: 82 KB, 600x455, rotateface.png [View same] [iqdb] [saucenao] [google]
9199315

>>9199311
rotated first to second around center

>> No.9199338
File: 190 KB, 600x633, rotateface2.png [View same] [iqdb] [saucenao] [google]
9199338

>>9199315
example

>> No.9199364

>>9199315

what about the change in the y axis rotation, you have a vector with the degrees right?

> I want to know in which direction the face is looking now that the image has been rotated.

this is impossible when you only know that the z is vertical. since the face can look in any inf direction while keeping z that way.

>> No.9200062

[math]
\begin{bmatrix}

\cos(\mathbb{roll})\cos(\mathbb{yaw}) &-\cos(\mathbb{yaw})\sin(\mathbb{roll})&\sin(\mathbb{yaw})\\
\cos(\mathbb{pitch})\sin(\mathbb{roll})+\cos(\mathbb{roll})\sin(\mathbb{pitch})\sin(\mathbb{yaw}) &\cos(\mathbb{pitch})\cos(\mathbb{roll})-\sin(\mathbb{pitch})\sin(\mathbb{roll})\sin(\mathbb{yaw})&-\cos(\mathbb{yaw})\sin(\mathbb{pitch})\\
\sin(\mathbb{pitch})\sin(\mathbb{roll})-\cos(\mathbb{pitch})\cos(\mathbb{roll})\sin(\mathbb{yaw}) &\cos(\mathbb{roll})\sin(\mathbb{pitch})+\cos(\mathbb{pitch})\sin(\mathbb{roll})\sin(\mathbb{yaw})&\cos(\mathbb{pitch})\cos(\mathbb{yaw})\\


\end{bmatrix}

[/math]

multiply that by your xyz coords, where your z is obviously 0, and plug in pitch yaw and roll

>> No.9200068

dude can you phrase your question coherently?

>> No.9200081

(Length*Width/Girth) * YAW