Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing...
Transcript of Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing...
![Page 1: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/1.jpg)
![Page 2: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/2.jpg)
2
• Ways to visualize your data using:
– Matlab
– Blender 2.5
![Page 3: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/3.jpg)
3
• Matlab
– Scientific tool
– Good for visualizing distributions of data
– Expensive
• Blender
– Open source 3D-modeling software
– Free
– Harder (but NOT impossible) to do ”exact” scientific
visualizations
![Page 4: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/4.jpg)
4
• Developed by The MathWorks
• First appeared in the late 1970s
• Short for ”Matrix Laboratory”
• All variables are matrices
• Several modules, e.g., ”Image processing toolbox”
• Cross-platform
• Scripts are quick to write but slow to execute
![Page 5: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/5.jpg)
5
• Plot options (examples)
![Page 6: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/6.jpg)
6
• Available plot-types depend on which toolboxes are
installed.
• Huge amount of user written functions at Mathwork
file exchange
• Easy to modify and/or create own visualization
functions
![Page 7: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/7.jpg)
7
• Import and export of 'special' data very much
dependent on user scripts
• Example: writeVTK.m
![Page 8: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/8.jpg)
8
![Page 9: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/9.jpg)
9
• Matlab plots can be a bit … plain
• Quite easy to prettify them substantially:
– Export plot to .svg (Scalable Vector Graphics) using
“plot2svg_2d” script found at Mathworks file exchange
– Load and manipulate in preferred SVG graphics editor (I
use )
![Page 10: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/10.jpg)
10
• www.mathworks.com
• www.mathworks.com/matlabcentral/fileexchange
![Page 11: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/11.jpg)
11
• Free 3D modeling and animation software
• Features include (not a complete list!):
– Physics and Particles
– Liquid and softbody (cloth) simulations
– Game engine
– Python support for scripting
– Video sequencer
– Sculpting
• Available for all common OS (installation file sized
around 20-25 Mb)
![Page 12: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/12.jpg)
12
• Initially developed as an in-house application by the
Dutch animation studio NeoGeo and Not a Number
Technologies (NaN) during the late 90's
• NaN bankrupt 2002 (Blender v 2.25)
• Released under the GNU GPL for a one time payment
of 100,000 Euros
• Blender is now managed by the Blender Foundation
• Version 2.5 recently released which included a full
remake of GUI and toolset
![Page 13: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/13.jpg)
13
• Strengths:
– Free (!!!)
– Powerful & fully featured
– Interface for python scripting (custom applications)
– Large user community -> tons (!) of online material
• Weaknesses:
– Sometimes hard to find good documentation
– Fewer “presets” than commercial products (3DS Max,
Maya)
![Page 14: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/14.jpg)
14
3D-Window
Camera
Object
Lamp
Butt
ons
win
dow
Window header
Tools ta
b
![Page 15: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/15.jpg)
15
• 'Middle mouse button' (MMB) – Rotate view
• 'Shift' + 'MMB' – Pan view
• 'Scroll wheel' – Zoom
• 'Ctrl' + 'MMB' – Zoom
• 'Numpad 1, 3, 7' – Front, right and top view
• 'Left mouse button' (LMB) – Move 3D cursor
![Page 16: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/16.jpg)
16
• Right mouse button (RMB) – Selects objects
• 'Shift' + RMB – Select multiple objects, deselect
objects
• 'A' – Select all, clear selection
• 'B' – Box select
• 'C' – Brush select
![Page 17: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/17.jpg)
17
• 'TAB' key used to switch between modes for selected
object
• In 'Object mode' the user can perform actions that
affect the entire object (translation, scale,
rotation,...)
• In 'Edit mode' local changes can be made by
manipulating the vertices that the object consists of
![Page 18: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/18.jpg)
18
• 'G' – Grab (Move objects)
• 'R' – Rotate
• 'S' – Scale
• 'X' – Delete
• 'E' – Extrude (Edit mode)
• 'Z' – Shaded/Unshaded view
• 'Shift' + 'D' – Duplicate
• 'Ctrl' + 'Z' – Undo
![Page 19: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/19.jpg)
19
• Numpad '0' – Shows the camera view
• 'F12' renders using current settings and camera, light
positions
• Internal renderer supports ray-tracing
• Several external rendering engines supported
(Yafaray, Indigo)
• It is possible to make image composition (effects) in
Blender based on the render layers
![Page 20: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/20.jpg)
20
![Page 21: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/21.jpg)
21
![Page 22: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/22.jpg)
22
• Post processing based on render layers
![Page 23: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/23.jpg)
23
• Result of ‘Glare’ node
![Page 24: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/24.jpg)
24
• Makes it possible to manipulate different aspects of
the render
![Page 25: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/25.jpg)
25
• A powerful tool for editing movie clips
• Combine clips, add text, different effects or sound
• Can be used in combination with the node editor for
some very cool results
![Page 26: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/26.jpg)
26
PreviewCurve editor
Strip editor
Timeline
![Page 27: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/27.jpg)
27
• Import/Export scripts exist for several common 3D-
formats
• ”Open source quality”
• Writing custom import scripts possible through
python interface
![Page 28: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/28.jpg)
28
• Blender comes equipped with a fully featured python
script editor
• Blender has its own Python API
• Possible to control most of the functionality through
Python scripts
• Learning threshold determined by ability to pick up
Python
![Page 29: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/29.jpg)
29
![Page 30: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/30.jpg)
30
![Page 31: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/31.jpg)
31
![Page 32: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/32.jpg)
32
• Blender is used at scientific groups over the world
• Free and open source but still powerful
• Uses include
– Electron microscope data visualizations
(http://www.sciencemag.org/content/vol320/issue5872/cov
er.dtl)
– Population behavior simulation using the Blender game
engine (http://vimeo.com/2158835)
– Molecular visualization and simulation
(http://www.scivis.ifc.cnr.it/)
![Page 33: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/33.jpg)
33
• www.blender.org
• www.blendernation.com
• www.blendercookie.com
• www.blenderartists.org
• www.elephantsdream.org
• www.bigbuckbunny.org
• www.open3dcourse.se (Gävle högskola course)
![Page 34: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software](https://reader036.fdocuments.net/reader036/viewer/2022081607/5ed324f40d4fd07a4b18f54d/html5/thumbnails/34.jpg)
34
• DEMO TIME!!!