1 6/26/2012
VIDEO RECORDING, EDITING AND IMPORTING
TUTORIAL
Sukhi Basati, PhD
Laboratory for Product and Process
Design,
Advisor: Andreas Linninger
Department of Bioengineering, University
of Illinois, Chicago, IL, 60607, U.S.A.
2 6/26/2012
PRESENTATION OUTLINE
Motivation
My research
Dynamic experiments / simulations
Product design
Previous Summer Videos
Video (Seth Baker)
Animation (Jennifer Hu)
Video importing, editing tutorial
Windows Movie Maker
ScreenCapture
Animation basics
MATLAB
IMAGEJ
3 6/26/2012
MY RESEARCH
Can we design improved tools to better understand
and treat Hydrocephalus?
A
Internal shunt
Electrodes
4 6/26/2012
VOLUME MEASUREMENT PRINCIPLE
Theory
• Induce an electric vector field within
ventricles
• Measure potential
• Potential changes with volume
• Calculate volume as a function
of voltage
•Current density remains within region
of higher conductivity
Advantages
• Monitor independent of pressure
• Monitor ventricular wall movements
Valid Concerns
• Neuronal Stimulation
• Electrode Drift
5 6/26/2012
SCALEABLE SENSOR FABRICATION METHOD
Microautomation Dicing Saw
Sensor Fabrication
• Considerations:
• Hand stability
• Rigidity during implantation
• Robustness
• Integration with additional transducers
• Systematic approach to device fabrication
• started big small
• Cost effective!
B
C A
1 mm
6 6/26/2012
WIRELESS UNIT FABRICATION AND PROTOTYPE IMPLANT
Novel Design Decisions
• Front and back side of PCB utilized
• Nano connectos plug in sensor
(Surgical consideration)
Prototype Unit
• Battery
• Integrated with shunt
• (Novel)
7 6/26/2012
DYNAMIC EXPERIMENTS
Unedited video Edited video
8 6/26/2012
DYNAMIC BENCH-TOP MODEL RESULTS
100 µL fluid infusion into detachable silicone balloon model
• 10 100 µL volume change dynamic range
• Adjust instrumentation
• Animal Model
9 6/26/2012
ACUTE VOLUME MEASUREMENT PROTOCOL
Validate sensor measurement in acute study
Goal: Record volume changes with implanted sensor
Method:
• Induce hydrocephalus in weanling rats
• Implant sensor in lateral ventricles and control
volume
• Confirm with imaging
Phase 1
3
µL/min
Phase 2
6
µL/min
Phase 3
3
µL/min
Phase 4
30 µL/min
Volu
me
(µL
)
Time (min)
Purpose is to Validate Sensor
Volume Measurements
10 6/26/2012
SENSOR VOLTAGE MEASUREMENTS
Phase 1
3
µL/min
Phase 2
6
µL/min
Phase 3
3
µL/min
Phase 4
30
µL/min
Volu
me
(µL
)
Time (min)
Voltage Data shunting and infusion single HC animal
• Data acquired using Labview
• sampled at 10kS/s
• Post-processing gain and low pass filter applied
• Data also plotted in matlab for averaging
• Min/Max value subtracted in order to plot relative
voltage changes.
11 6/26/2012
VOLUME CONVERTED MEASUREMENTS
Calibrated Measurements
• Calibration performed
before implantation
• Equation applied to
shifted voltage data
Pressure Measurements
• Sensitivity from data sheet used to
calculate pressure
Shunting
• High correlation and
agreement
Infusion
• Small volume changes
calibration
calibration
Volume
Voltage
animal animalVolume Voltage
12 6/26/2012
IMAGING CALIBRATION
Method to visualize ventricles and correct calibration
curve
• Philips Integris V3000 system
• X-ray (2d and 3d images)
• post processing (ImageJ)
• Iohexol contrast is infused which attenuates the xray.
Imaging measured
volume addition
Se
ns
or
Me
as
ure
d
Vo
lum
e
Herrera et. al, CT Ventriculography for diagnosis
of occult ventricular cysticerci. Surg Neurol Int
2010.
13 6/26/2012
2D IMAGING OF INFUSION
30 µL/min infusion
• Sensor implant location confirmed
• Convective flow of contrast agent through ventricles
14 6/26/2012
2D IMAGING
15 6/26/2012
30 uL Injection
ROTATIONAL IMAGING
16 6/26/2012
Angio measured volume addition (uL)
Ac
tua
l vo
lum
e a
dd
itio
n (
uL
)
IMAGING CALIBRATION
Purpose of imaging:
• Improve calibration of volume sensor in-
vivo
• Can we calculate volume from 2d images
that contains accumulation of intensity (not
a slice)
b
a
Volume A x dx
2
b
a
r dx
2
b
a
f x dx
Volumes of Solids of Revolution:
17 6/26/2012
IMAGING CALIBRATION
18 6/26/2012
FURTHER MOTIVATION
Link to TED Talk
19 6/26/2012
PREVIOUS SUMMER RESEARCHERS
20 6/26/2012
PREVIOUS SUMMER RESEARCHER (JENNIFER HU IMSA)
21 6/26/2012
PREVIOUS SUMMER RESEARCHER (JENNIFER HU IMSA)
22 6/26/2012
OVERVIEW OF TUTORIAL
• Demonstration of recording video, editing, and saving.
• Handouts of the steps are provided for reference.
• CD with related content is available.
• Brief overview of animation.
• Virtual Reality Modeling Library MATLAB (VRML)
23 6/26/2012
STEP 1 (RECORDING VIDEO)
1. Turn Camera on.
2. Go into Camera settings.
(The LPPD camcorder
uses a touchscreen LCD)
3. Go into movie settings.
4. Change movie settings.
5. Go into rec mode.
6. Select record mode (LP mode is
recommended for less file size)
7. Press the go back button to exit
the menu.
8. Press Record button to record
video.
24 6/26/2012
STEP 2 (CONNECTING CAMERA TO PC)
1. Connect camera to hub. (There
is a female – male connection
between the hub and camera)
2. Connect USB cable to computer
and hub. The power cable must
be plugged in as well.
3. Turn camera on.
4. You should see the LCD display
the connection screen.
5. Press the computer button.
25 6/26/2012
STEP 3 (SAVING VIDEO TO COMPUTER)
1. With camera connected to
computer via hub, windows
should automatically detect the
hardware.
2. Open folder to view files.
3. Click on MP ROOT.
4. Click on 101PNV01.
5. Select and copy video files to
your designated hard drive
location.
26 6/26/2012
STEP 4 (CONVERTING .MPG TO .WMV)
The video editing software we will use requires
windows media audio/video format.
1. Open MediaCoder 0.6.4. The program can be installed from the provided cd.
http://www.mediacoderhq.com/
1. Add file by clicking on add tab.
2. Then, in the bottom portion of the screen you can adjust your output audio and video settings by clicking on the audio and video tabs.
3. For audio output, use Windows Media Audio/
4. For video output, select Windows Media. In the container tab, you can specify .avi, .mpg, or another format. (select default)
5. Also note the location of the file to be converted. This can be specified in the top right portion of the window. (Click on the open tab)
6. Click the start tab to begin the process of converting.
27 6/26/2012
STEP 5 (LOADING FILES INTO EDITING SOFTWARE)
The default program we will use is
windows movie maker which
comes pre-installed on windows
xp computers.
1. Open Windows Movie Maker
(usually under accessories –
entertainment)
2. Click on import video and select
file.
3. Disable the split large video into
smaller clips.
4. You should see your video clip in
the my collections pane.
5. To load a picture, follow a similar
procedure as adding a video clip.
(Click on import picture in the
tasks pane, and select the picture.
You should see the picture in the
my collections pane)
28 6/26/2012
STEP 6 (EDITING AND SAVING YOUR MOVIE PROJECT)
In the bottom portion of your screen you will see a timeline of your movie.
1. To add a file to your timeline select it from my collections and drag it into the timeline.
2. To trim a video clip, place your cursor over one end of the clip. You will see an option to trim the clip.
3. To add a Title, or subtitles, you may click on the edit movie options in the movie tasks window. Follow the instructions and click done to return to the storyboard. You should see your Title clip in the bottom portion of the screen.
4. To smooth the transition of files in your movie project, click and drag the file in the timeline and slowly merge the two files together.
5. When done click finish movie and specify location.
29 6/26/2012
SMARTPHONE / DROPBOX DEMO
30 6/26/2012
SCREEN CAPTURE
• Want to record computer screen? • simulation, computer animation, etc.
• Free Screen Video Capture • http://www.topviewsoft.com/free-screen-video-capture.html
31 6/26/2012
TECHNICAL DETAILS Compatibility
Advised to use wmv format
Presenting your movie: Make sure your movie plays in ppt before you present!
Make sure videos are saved in same folder!
Movie Name length should not be too long
Try inserting object link instead of insert movie
Check display settings on the computer Right click desktop
Select properties
Change resolution or
Click advanced decrease hardware acceleration or decrease screen refresh rate
Go to Slide Show Settings Use hardware acceleration
Option to use two monitors
Typing notes at bottom of presentation - set up slide show in presenter view
32 6/26/2012
ANIMATIONS USING MATLAB
• Kinetics of your research
defined?
• MATLAB has virtual reality (vr)
toolbox that comes with
installation.
• Overview of Steps
• Install world editor
>>vrinstall
• Open Simulink and create
model file with VR sink
• Input dynamics of objects
and simulate.
• Example demonstrated…
33 6/26/2012
ANIMATIONS USING MATLAB
Create virtual world using vrealm (comes installed with matlab)
34 6/26/2012
IMAGEJ • Show process of creating a stack of images using ImageJ
• Recorded process using Free Screen Capture
35 6/26/2012
SUMMARY
• Importance of media in presentations and education.
• Handouts of procedure are provided.
• Video recording, editing and importing.
• Animation basics.
• Succinctly explain process or decision decisions.
• Creativity and persistence beneficial.
36 6/26/2012
RET TASK
• We would like you to create a draft video of your research experience at UIC
• Due next week!
• For this first draft of a video please include the above sections. We would like you
to learn how to open and use the software.
• If a video camera is needed, the LPPD camera is available.
Format:
Title slide: Title, Name, Date, Affiliation, Sponsors.
Content: This can be video, or pictures.
Credits: Acknowledgements including NSF grant, advisor(s), etc.