What are affine transformations?

  Рет қаралды 86,861

Leios Labs

Leios Labs

3 жыл бұрын

Algorithm Archive: www.algorithm-archive.org/con...
Github sponsors (Patreon for code): github.com/sponsors/leios
Patreon: / leiosos
Twitch: / leioslabs
Discord: / discord
Github: github.com/leios
Music: www.joshwoodward.com/

Пікірлер: 151
@altaroffire56
@altaroffire56 3 жыл бұрын
Visualising matrix elements as dials is genius! Glad to see a new video and excited for what comes next. :)
@dosu5064
@dosu5064 10 ай бұрын
Best tutorial. It doesn't give you a formula to summarize, it gives INTUITION. Greate job
@Adeith
@Adeith 3 жыл бұрын
I kinda knew this but seeing it really helps. Especially that third row.
@LeiosLabs
@LeiosLabs 3 жыл бұрын
Yeah, I was the same way! I was hoping this helped someone who was also in the same boat!
@AngryArmadillo
@AngryArmadillo 3 жыл бұрын
Same here
@dofalol
@dofalol 3 жыл бұрын
Great visualization with the "dials" in the matrix and very nice way of connecting 2D transformations with the side of a 3D cube. I never saw it so neatly presented.
@rupert7003
@rupert7003 2 жыл бұрын
I really enjoyed this explanation - one of the best I have seen. I particularly liked your dial visualisation! I always knew it did that but seeing each dial and how the vertices moved accordingly really made it click - especially in the 3D mapped to 2D case.
@zmcai1978
@zmcai1978 2 жыл бұрын
your detailed explanation in algorithm archive really amazed me!!
@Mutual_Information
@Mutual_Information 3 жыл бұрын
Very cool! The perspective of holding all matrix values except one constant and shifting it while seeing the effect on the square is new to me. Great stuff, keep it up, subscribed!
@LeiosLabs
@LeiosLabs 3 жыл бұрын
Happy to hear it was useful!
@subramanyam2699
@subramanyam2699 Жыл бұрын
No budy in the world had ever taught math like this!! Thanks a lot ❤
@sando_7
@sando_7 3 жыл бұрын
So mesmerizing.. A beautiful intuitive explanation I've ever seen! Thank you bro!
@SpamTheHorse
@SpamTheHorse 3 жыл бұрын
This was an interesting and helpful visualization of affine transformations. I liked linear algebra, programming, and their applications in games, and I always wondered how to visualize the points of the 2d affine transformation in 3d space. I also never noticed that the rotation matrix could also be a composition of shearing and scaling (but also I learned that it is also a composition of two reflections).
@duality4y
@duality4y 3 жыл бұрын
That is so cool can't wait to see what's next.
@Magnasium038
@Magnasium038 2 жыл бұрын
Wow, never thought of visualizing the elements as controling shearing and scaling. And consolidating 2D affine into 3D linear is just wonderful
@bentationfunkiloglio
@bentationfunkiloglio 2 жыл бұрын
This visuals are great. Really enjoyed this video.
@ekurtoglu
@ekurtoglu 10 ай бұрын
An excellent piece of video. Teaches you 2 days of studying the topic on the article. I can't imagine the effort being put onto these visualization tho. Thanks!
@sampritineog7787
@sampritineog7787 3 жыл бұрын
That was a great video to get a intuition. Hope to see your next video soon.
@SunnyGirl135
@SunnyGirl135 2 жыл бұрын
Really useful - quick and comprehensible. Thank you!
@user-vn7ce5ig1z
@user-vn7ce5ig1z 3 жыл бұрын
That was a great explanation and clearly showed the connection and translation (pun intended) from numbers to graphics. 👍
@wargreymon2024
@wargreymon2024 10 ай бұрын
This is the best explanation of affine transformation out there
@0hellow797
@0hellow797 3 жыл бұрын
Please make more videos this is great
@LeiosLabs
@LeiosLabs 3 жыл бұрын
New videos are on the way (along with chapters and other cool projects)!
@hhcoyotle655
@hhcoyotle655 3 жыл бұрын
This is a great video about tensors ! You should totally do a video about fluid mechanics and Reynolds stresses ^^
@RandomGuy-ie2cb
@RandomGuy-ie2cb 2 жыл бұрын
Great video!! Jusr finished linear algebra course and watching those kind of explanations is awesome and inspiring!
@BlackDragon17
@BlackDragon17 7 ай бұрын
Absolutely amazing explanation, thank you so much! Way more intuitive than my course material.
@nohaelhaddad4425
@nohaelhaddad4425 2 жыл бұрын
Great Visualization
@ETeHong
@ETeHong 2 жыл бұрын
your visualization works are awesome!
@kateluerken4109
@kateluerken4109 2 жыл бұрын
You are a god at communicating this stuff dude, thank you!
@velocibeaver8537
@velocibeaver8537 2 жыл бұрын
This is a very clear intuitive explanation man, thanks!
@waiyulai5392
@waiyulai5392 2 жыл бұрын
You are talented. Please upload more of your videos.
@kartikpodugu
@kartikpodugu Жыл бұрын
with visualizations, the affine transformations are illustrated in a very simple and easy to understand manner. very thanks
@patrickstival6179
@patrickstival6179 10 ай бұрын
Awesome video. Super easy to follow
@catbook628
@catbook628 5 ай бұрын
actually great, and intuitively easy to understand, explanation
@suprecam9880
@suprecam9880 3 жыл бұрын
Thanks brother! Great video
@Hunar1997
@Hunar1997 3 жыл бұрын
That was an amazing perspective to look at it..
@ashishjain871
@ashishjain871 3 жыл бұрын
Beautiful :). Great animations; very intutive.
@mazegamerz3178
@mazegamerz3178 3 жыл бұрын
Thats insane , a nother video about it please , the couple passed days ive just start digging about it , and yeah here u ar . More detailed video would be pleasuer. Great work man !
@LeiosLabs
@LeiosLabs 3 жыл бұрын
Glad you liked it!
@nitinkumarmittal4369
@nitinkumarmittal4369 2 жыл бұрын
Best explanation for affine transformations
@Jimserac
@Jimserac 3 жыл бұрын
My God, if only this sort of explanation was available back in the 70's when I was studying calculus and advanced math. Eventually, I even had a set of microfilms of Oliver Heaviside's notebooks and was working through and following his work. Eventually I moved on to software work and donated it all to the Brown Univ. Electrical Engineering Dept. where, I'm sure, it was long since lost and forgotten.
@computer-love
@computer-love 3 жыл бұрын
yay, new leios~
@abhideshmukh2182
@abhideshmukh2182 3 жыл бұрын
Sometimes i really feel tht this is very underrated math channel ❤️🔥
@LeiosLabs
@LeiosLabs 3 жыл бұрын
Glad you like the content!
@prathameshdinkar2966
@prathameshdinkar2966 Жыл бұрын
The concept is super awesome!! Hope every high school teacher introduces matrix in such intuitive ways!!
@user-hp6ls8qy6d
@user-hp6ls8qy6d 11 ай бұрын
Great idea with the dials!
@rohanhabu
@rohanhabu 2 жыл бұрын
Fantastically explained! 👍🙂
@chaoukimachreki6422
@chaoukimachreki6422 2 жыл бұрын
You are amazing brother ! Halelujah
@usama57926
@usama57926 2 жыл бұрын
great explanation
@muhammadtayyabtahirqureshi7186
@muhammadtayyabtahirqureshi7186 5 ай бұрын
absolutely amazing
@saulesha123
@saulesha123 2 жыл бұрын
so cool explanation!
@user-oj3eb5jx3v
@user-oj3eb5jx3v 2 жыл бұрын
Thanks a lot,it's clear and intuitive.
@freddupont3597
@freddupont3597 3 жыл бұрын
What a great and clear video!
@LeiosLabs
@LeiosLabs 3 жыл бұрын
Glad you liked it!
@benediktrein8888
@benediktrein8888 2 жыл бұрын
awesome explanation
@gustavosilveirafrehse1508
@gustavosilveirafrehse1508 3 жыл бұрын
woahh, was just learning opengl and wondering why the need of vec4/mat4 instead of vec3/mat3x3. Really well made video!
@LeiosLabs
@LeiosLabs 3 жыл бұрын
Ah, that's a good application!
@michaelcharlesthearchangel
@michaelcharlesthearchangel Жыл бұрын
I love the use of dialogy to solve the matrix math problem of representation. In a quantum system of adjustment, a "::" has toggles and sliders to shift coupled AI perception. Since a "::", ":;", ";:", etc. is bijective and modular between containers.
@mossylikescake
@mossylikescake 3 жыл бұрын
The science boss is back! I must say Jimmy that you are looking affine! Great video, but what I'm really wondering is..... how does this transformation relate to the tesseract?
@LeiosLabs
@LeiosLabs 3 жыл бұрын
The projection matrices from 4d -> 3d are kinda the same in a way. In addition, the transformation matrices used in my video on the topic are affine.
@mossylikescake
@mossylikescake 3 жыл бұрын
@@LeiosLabs I feel a related tesseract video is in order! Also the youtube algorithm will love you
@rjtimmerman2861
@rjtimmerman2861 2 жыл бұрын
In my book, matrices were explained with some abstract definition (great for math student's first course...), and as a system of linear equations From 3blue1brown's videos I've learned to see the columns as where the basis vectors land, which helped a great deal in the visualisations Now this seeing the numbers as dials really makes me feel like I understand how to look at the numbers of a matrix and see it's effect as a transformation, especially combined with 3b1b's basis column visuals
@giusepperana6354
@giusepperana6354 2 жыл бұрын
I was a little put off by the exaggeratedly compassionate soft warm voice but the visualization gave me a really nice mind blown moment. Thanks!
@andrey730
@andrey730 8 ай бұрын
Those are really cool ideas! I certainly like more the one that translation by using augmented matrix is basically a shear using 4th dimension. But the one about rotation = shear + scale is certainly adds to understanding to how a shear works for me.
@rikkertkoppes
@rikkertkoppes 3 жыл бұрын
My intuition is that the columns in the matrix tell you where the (tips of) the unit vectors end up. In my mind, I also picture it as viewing from the top at z=1 so that the last column works properly. That way I can quickly create a grid from those vectors and draw the shape in that transformed grid
@LeiosLabs
@LeiosLabs 3 жыл бұрын
Yeah, this was the way 3blue1brown showed it in his video on linear transformations. I didn't exactly want to tread the same ground ^^
@vroomik
@vroomik Жыл бұрын
I've just started watching , it's so good, have you been teaching?
@chrisbibat
@chrisbibat 3 жыл бұрын
The way you explained how translation works with the homogenous coordinate was awesome, I finally understand it now :) If we're only concerned about 2D, what would happen if that third coordinate is not 1?
@LeiosLabs
@LeiosLabs 3 жыл бұрын
Sorry, somehow only seeing this comment now. I show that in the algorithm archive (and also as a brief side-note at the end of the video), but this essentially scales the z axis.
@guyindisguise
@guyindisguise 3 жыл бұрын
Great mental model with the horizontal/vertical/diagonal dials. Love it! Any teaser on what topics we get to look forward to with your videos in 2021?
@LeiosLabs
@LeiosLabs 3 жыл бұрын
I guess the best teaser would be to "DNA digivolve my existing videos."
@guyindisguise
@guyindisguise 3 жыл бұрын
​@@LeiosLabs Had to google that (non-digimon-viewer), sounds interesting, can't wait!
@LeiosLabs
@LeiosLabs 3 жыл бұрын
@@guyindisguise in hindsight, I should have just said "mix." Sorry for the confusion!
@CaptchaSamurai
@CaptchaSamurai 3 жыл бұрын
Great idea with matrix of dials!
@nguyenbaodung1603
@nguyenbaodung1603 2 жыл бұрын
so great !!
@esamalmohimmah3242
@esamalmohimmah3242 3 жыл бұрын
Excellent!
@lydianlights
@lydianlights 3 жыл бұрын
interesting perspective!
@aresharesh8671
@aresharesh8671 3 жыл бұрын
Great video! Homogenous coordinates are an awesome topic and (in my opinion) not hacky at all! I'd love to see more on them
@LeiosLabs
@LeiosLabs 3 жыл бұрын
To be fair, I played up the "hackiness" of them too much. You are 100% right!
@mastertine
@mastertine 3 жыл бұрын
that was soo cool 😊
@breakdancerQ
@breakdancerQ 2 жыл бұрын
visualisations just make this thing a whole lot more sensible!
@munemshahriar1493
@munemshahriar1493 3 жыл бұрын
I really liked the graphic work you did in the video. Can you please tell me how you did it?
@ahmetkarakartal9563
@ahmetkarakartal9563 Жыл бұрын
wow, super video
@annaly2318
@annaly2318 2 жыл бұрын
thanks for making this video... makes math so much easier!
@protocol6
@protocol6 3 жыл бұрын
Nice. I like the visualizations. You can also do this in an extended complex form with √k instead of i. If I remember correctly, k is cotangent to the angle of a line through the origin from the lower left to the upper right corners. The sign of k defines whether it is stretching or skewing and whether rotations are elliptic or hyperbolic. At 45⁰, it's circular rotation if negative. If positive, the angle is of the asymptote of the rotational hyperbola. It can be more computationally and space efficient than matrices in some cases. You might be able to do the same hacky combination of the affine using a similarly extended quaternion but I haven't tried that yet.
@LeiosLabs
@LeiosLabs 3 жыл бұрын
This is an interesting perspective I had not thought about. I need to look into it more! Thanks for the comment!
@protocol6
@protocol6 3 жыл бұрын
@@LeiosLabs I have yet to find anyone else using them this way so that's nice to hear. I expect someone does, I just haven't figured out what they call it. People usually stick to a k of -1, 0, or 1 (Complex, Dual and Split-complex) and never mix them other than hierarchically but it's possible to generalize the algebra, the trigonometric functions and even flip the sign of k (swap the real and norm) and do operations between numbers with different k values. I find it useful for things like orbital dynamics and relativistic physics. Also unit conversions as |k| is effectively the ratio of the units of the real and imaginary part... such as k=1/c for dτ=||dt+dx√k|| which I find less messy than using cdτ (ds) and cdt everywhere-at least in software where I need to retain time and proper time in time units, for instance, rather than length units.
@timanb2491
@timanb2491 3 жыл бұрын
great thank you
@ManiacEditz
@ManiacEditz 2 жыл бұрын
hi. james was it? anyways, im one of your mom's students
@LeiosLabsLive
@LeiosLabsLive 2 жыл бұрын
Haha, that's great! From the elementary school?
@ManiacEditz
@ManiacEditz 2 жыл бұрын
@@LeiosLabsLive yeah
@cringy7-year-old5
@cringy7-year-old5 5 ай бұрын
crazy line of addressal
@ManiacEditz
@ManiacEditz 5 ай бұрын
@@cringy7-year-old5 💀
@alegian7934
@alegian7934 3 жыл бұрын
Great vid! Ive been learning tensors recently so - are there any plans for a relative video?
@LeiosLabs
@LeiosLabs 3 жыл бұрын
What do you want to learn about tensors?
@alegian7934
@alegian7934 3 жыл бұрын
@@LeiosLabs :D I guess any practical application? Or (perhaps more theoretical than this channel usually posts) exploration of covariance / contravariance?
@esaskhan95
@esaskhan95 3 жыл бұрын
Its staying in the head for longer after watching this video!
@mohammedbelgoumri
@mohammedbelgoumri 3 жыл бұрын
Like before I even watch
@LeiosLabs
@LeiosLabs 3 жыл бұрын
I hope I didn't disappoint!
@poweredbysergey
@poweredbysergey 3 жыл бұрын
Cooler!
@pavelperina7629
@pavelperina7629 2 жыл бұрын
I understand matrices in completely different way that allows me to construct them directly. Multiply matrix times vectors by hand writing down complete equations like v.x'=v.x*r1c1+v.y*r1c2+v.z*r1c3 (normally m11... or m00..., i wanted to make clear what is row and column) Now try unit vector v.x=1. You will notice that first column is basically how will transformed unit vector x look like. Second column is for vector y, third for z. If you take any vector you can write it as sum of unit vectors with some scale so it can transform any vector. Do you want rotation by 30 degrees? Ok. Let's start with x. Ok, unit vector x will be tranformed into cos30 in x and sin30 in y -> first column. vector y will be transformed into something pointing left and up, so -sin30 in x and cos30 in y -> second column. Do you want translation for points, but not vectors? Expand matrix to 3x3, assign z=1 to points and z=0 to vectors. Write translation in tx,ty to third column and let r3c3=1. Now if v.z is equal 1, it will be transformed into vector tx,ty and z will remain 1. If original vector had v.z=0 it won't be affected by translation and z will remain 0. You may ignore that z is "borrowed" from 3rd dimension and you may call it w to make it less confusing and compatible with 3D transformations. This way you can even do some stuff like align two 3D objects, e.g to align screw with hole in some mechanical part if you can measure some vectors and points for reference.
@priyanshukumawat4142
@priyanshukumawat4142 3 жыл бұрын
HOPE YOU WERE THERE IN MY COLLEGE AS MY PROF.
@mj2068
@mj2068 3 ай бұрын
good video.
@shanmukeshr1696
@shanmukeshr1696 3 жыл бұрын
After too many long days
@davidzigmund9771
@davidzigmund9771 Жыл бұрын
Instant like :)
@mayabartolabac
@mayabartolabac 3 жыл бұрын
eyyyyy you made a video
@dailymanb
@dailymanb 2 жыл бұрын
wow!
@StarLight_tu
@StarLight_tu 3 жыл бұрын
I still have vague idea about matrix and sin/cos. Is there any visualize d material can help me get it easier?
@Jack-dx7qb
@Jack-dx7qb 2 жыл бұрын
"rotation = scaling + shearing" BAM!!!
@OrenLikes
@OrenLikes 4 ай бұрын
nice! i am looking for grid deformation due to straightening a function. say i am traveling along y=0, in our 3d world (z=0), using perspective, i'd see equally deformed "squares" on both my sides. in 2d, the cartesian grid will not change, as the line is straight and parallel to the x-axis. I would like to "see" what happens to the grid if i travel along y=x, and if i make the graph a straight horizontal line. same for y=x^2 and for y=x^3 and for y=sin(x). can you point me in the right direction? thank you!
@skit555
@skit555 3 жыл бұрын
Could have been awesome if you tried the hypercube that way ^^
@LeiosLabs
@LeiosLabs 3 жыл бұрын
Honestly, one of the main reasons I made this video was because of the confusion in the comment section for that video... but seeing the projection matrix from 4D -> 3D would be cool!
@user-wr4yl7tx3w
@user-wr4yl7tx3w Жыл бұрын
May be it was a bit fast but what is the benefit of adding an extra dimension in your last example?
@HighlandersUK
@HighlandersUK 5 ай бұрын
Good
@slingshot7602
@slingshot7602 11 ай бұрын
What tool do you use for the animation or simulation.
@LeiosLabs
@LeiosLabs 11 ай бұрын
This was a mix of gnuplot, blender, and some hand-made visualization software. It was all over the place tbh
@brainfreeze7979
@brainfreeze7979 3 жыл бұрын
How do you make animations like in this video? Could you do a “how to”?
@LeiosLabs
@LeiosLabs 3 жыл бұрын
I used to stream the process every day, but stopped due to time constraints and low engagement
@brainfreeze7979
@brainfreeze7979 3 жыл бұрын
@@LeiosLabs would any of those streams be available somewhere? A second channel or twitch or other? I’d love to see one. I don’t think I’d have the skill to do it anyway I’m just curious about the process. Thanks.
@LeiosLabs
@LeiosLabs 3 жыл бұрын
@@brainfreeze7979 on mobile, but a lot of them are backed up on my youtube channel simuleios. The twitch link is in the description.
@brainfreeze7979
@brainfreeze7979 3 жыл бұрын
@@LeiosLabs cool. Thanks very much
@EEBADUGANIVANJARIAKANKSH
@EEBADUGANIVANJARIAKANKSH 3 жыл бұрын
may i know how to make these kind of videos ? this looks similar to 3b1b videos , is there any software for such video making ?
@user-tj7hx6ps9s
@user-tj7hx6ps9s 8 ай бұрын
hello what is the difference between affine and mathomogeneous matrix
@swagatochatterjee7104
@swagatochatterjee7104 3 жыл бұрын
Hey won't you be teaching Julia class this year?
@LeiosLabs
@LeiosLabs 3 жыл бұрын
I might come in for a guest lecture, but I am no longer working at MIT
@MrRyanroberson1
@MrRyanroberson1 3 жыл бұрын
now if only there were a way to easily slice a geometric figure with an n-1 dimensional knife
@LeiosLabs
@LeiosLabs 3 жыл бұрын
Haha, yeah. I thought about adding that slice to the 3D visualizations. Looking back, I probably should have!
@MrRyanroberson1
@MrRyanroberson1 3 жыл бұрын
@@LeiosLabs i was more wondering... if there were some kind of efficient way to start with a cube and end with an arbitrary polygonal cut of the cube
@xoppa09
@xoppa09 Жыл бұрын
why do people say an affine transformation means to 'forget the origin' , when you are clearing using the origin.
@softviz
@softviz 2 жыл бұрын
a green screen could help to look your demo better~?
@shoam2103
@shoam2103 3 жыл бұрын
Affine transforms are just a subset of 3D transforms projected into 2D.. Maybe n to n-1 D too? What does it all mean??? 😖
@dutonic
@dutonic 3 ай бұрын
This is a weird comment. But I feel like your voice doesn't match your face. Like I've never felt this way before in my life and it's really strange. It's not an insult at all. You have both a nice voice and nice face! It's just super weird seeing you sound like that. Idk how to describe it!!! It's crazy. Has anyone said this to you before? Awesome video btw. I'm studying fractal topology and this was super helpful!
@LeiosLabs
@LeiosLabs 3 ай бұрын
Been on KZfaq and twitch for years and have never heard that specifically. I have been told I sound like a teenager / feminine / nerdy when it's just my voice.
@LeiosLabs
@LeiosLabs 3 ай бұрын
And I guess the fractal work is with IFSs, which is why you need affine transforms?
@dutonic
@dutonic 3 ай бұрын
@@LeiosLabs IFS is the goal I'm working toward! I'm still new to the subject. Working through the first chapter of "Fractal Geometry" by Kenneth Falconer.
@LeiosLabs
@LeiosLabs 3 ай бұрын
@@dutonic yeah, IFSs are really fun. I actually use them all the time for various tasks. There will (hopefully) be a video later this year showing how useful they are
@gchinmayvarma9030
@gchinmayvarma9030 3 жыл бұрын
@leiosOS hello i have been watching your videos for quite a long while now, and I'd like to ask you if you knew about this programming language called processing? your style of making videos and math would translate (hehe) really well, maybe check it out!
@m4y4nk
@m4y4nk 3 жыл бұрын
Long time no see. 🤨
@LeiosLabs
@LeiosLabs 3 жыл бұрын
Yeah, it has been a while! Sorry for the delay! I really do have a lot of plans for the rest of 2021 and intend to stick to them!
Christianity's most important algorithm
7:09
Leios Labs
Рет қаралды 12 М.
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 62 МЛН
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 57 МЛН
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 20 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️❤️ #roadto100million
00:20
Celine Dept
Рет қаралды 35 МЛН
Affine transformations in 5 minutes
5:32
Graphics in 5 Minutes
Рет қаралды 32 М.
What Are Neural Networks Even Doing? (Manifold Hypothesis)
13:20
2D Sprite Affine Transformations
27:59
javidx9
Рет қаралды 33 М.
Rotations in 3D Graphics With Quaternions
8:23
Manifolds in Maryland
Рет қаралды 7 М.
How Dijkstra's Algorithm Works
8:31
Spanning Tree
Рет қаралды 1,3 МЛН
How does flood fill work?
8:10
Leios Labs
Рет қаралды 26 М.
Affine Transformation
11:40
Computer Vision with Hüseyin Özdemir
Рет қаралды 7 М.
Iterated Function Systems
2:34
Leios Labs
Рет қаралды 13 М.
Affine subspaces and transformations - 01 - affine combinations
9:47
Arthur Parzygnat
Рет қаралды 28 М.
Неразрушаемый смартфон
1:00
Status
Рет қаралды 1,7 МЛН
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 50 МЛН
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 1,2 МЛН