Let u=(u1,u2) be a vector valued function. Then the divergence operator: div u:=du1dx+du2dx is a very useful thing to have on our side. Again, I will leave this little code upto you. It is really a one liner!
Note, that if ∇u=(ux,uy) then div(∇u) gives the Laplacian Δu of the image u. This could be useful.
Here is the Laplacian of Boo displayed between -50 to 50.
i.e. use the commands to display the Laplacian d :
>> m=-50; M=50; figure; imshow((d-m)/(M-m));
Here is the original.
Note, that if ∇u=(ux,uy) then div(∇u) gives the Laplacian Δu of the image u. This could be useful.
Here is the Laplacian of Boo displayed between -50 to 50.
i.e. use the commands to display the Laplacian d :
>> m=-50; M=50; figure; imshow((d-m)/(M-m));
![]() |
Laplacian of Boo (-50 to 50) |
Here is the original.
![]() |
Boo, the cutest dog in the world |
No comments:
Post a Comment