Uploaded October 2019 | Updated November 2026, 20 hours ago
Want to take schlieren images or videos at home, but don't have access to a nice mirror? Or you've mastered the conventional schlieren technique and want to try your hand at something a little different? Or like the title mentions, do you want to take schlieren images like NASA? In this video, I'll walk you through every step you need to get started with Background Oriented Schlieren (BOS) experiments in your own home. Everything can be done with programs that are free to use. I also include my specially-written Python and MATLAB GUI programs for you to use.
UPDATED: Please use the second version (v2) of my ImageJ macro so you don't run into any issues. Here is my update YouTube video: youtube.com/watch?v=GXapOtBf52o
==== TIME-STAMPS ====
00:00 - Introduction
01:25 - Outline
02:32 - Programs you will need
03:08 - FFmpeg
05:28 - ImageJ/Fiji
13:42 - ImageJ macros
16:39 - Python code (images)
23:38 - MATLAB code (images and videos)
36:05 - DIY at home
==== NOTES ====
► This is a long video, I know. But I would rather upload a long, comprehensive video than skimp on the details. But if you're a regular to my channel, you probably know that already.
► My programs are not completely fool-proof. If you do something horribly wrong, you might get an error. But, if you use it the way I walk you through in the video, you shouldn't have any issues. If you do get an error, it might be best to just restart the program.
► I will probably be adding the video capability to the Python GUI at some point. Or better yet, you can fork the repository on GitHub and practice your Python coding by adding it in yourself.
► Not every video you download from YouTube will work when trying to convert it like I did with FFmpeg. Most of the ones I tried worked, but if yours doesn't, I'm not the best person to ask how to fix it. Google is helpful here.
► The NASA data obviously looks really nice. My processing of their data doesn't look as nice. There are many reasons for this, including (but not limited to) the high quality of their raw images, averaging multiple images together, using a more sophisticated code, and using a different analysis technique (optical flow).
==== RELEVANT VIDEOS ====
Schlieren YouTube Playlist
► youtube.com/watch?v=GEImPtOM-d4&list=PLxT-itJ3HGuWift1-NXVhSCzGd9uqDJv1
==== RELEVANT LINKS ====
My website with code and PDF document
► joshtheengineer.com/2019/10/20/how-to-take-pictures-like-nasa-using-background-oriented-schlieren-bos
My GitHub with code
► github.com/jte0419/Background_Oriented_Schlieren
==== REFERENCES ====
Python's "normxcorr2" function from GitHub user Sabrewarrior
→ github.com/Sabrewarrior/normxcorr2-python
NASA AirBOS Shock Wave Video
→ youtube.com/watch?v=443RLEnu_UI
Find all the rest of my references in my PDF document
Want to take schlieren images or videos at home, but don't have access to a nice mirror? Or you've mastered the conventional schlieren technique and want to try your hand at something a little different? Or like the title mentions, do you want to take schlieren images like NASA? In this video, I'll walk you through every step you need to get started with Background Oriented Schlieren (BOS) experiments in your own home. Everything can be done with programs that are free to use. I also include my specially-written Python and MATLAB GUI programs for you to use.
UPDATED: Please use the second version (v2) of my ImageJ macro so you don't run into any issues. Here is my update YouTube video: youtube.com/watch?v=GXapOtBf52o
==== TIME-STAMPS ====
00:00 - Introduction
01:25 - Outline
02:32 - Programs you will need
03:08 - FFmpeg
05:28 - ImageJ/Fiji
13:42 - ImageJ macros
16:39 - Python code (images)
23:38 - MATLAB code (images and videos)
36:05 - DIY at home
==== NOTES ====
► This is a long video, I know. But I would rather upload a long, comprehensive video than skimp on the details. But if you're a regular to my channel, you probably know that already.
► My programs are not completely fool-proof. If you do something horribly wrong, you might get an error. But, if you use it the way I walk you through in the video, you shouldn't have any issues. If you do get an error, it might be best to just restart the program.
► I will probably be adding the video capability to the Python GUI at some point. Or better yet, you can fork the repository on GitHub and practice your Python coding by adding it in yourself.
► Not every video you download from YouTube will work when trying to convert it like I did with FFmpeg. Most of the ones I tried worked, but if yours doesn't, I'm not the best person to ask how to fix it. Google is helpful here.
► The NASA data obviously looks really nice. My processing of their data doesn't look as nice. There are many reasons for this, including (but not limited to) the high quality of their raw images, averaging multiple images together, using a more sophisticated code, and using a different analysis technique (optical flow).
==== RELEVANT VIDEOS ====
Schlieren YouTube Playlist
► youtube.com/watch?v=GEImPtOM-d4&list=PLxT-itJ3HGuWift1-NXVhSCzGd9uqDJv1
==== RELEVANT LINKS ====
My website with code and PDF document
► joshtheengineer.com/2019/10/20/how-to-take-pictures-like-nasa-using-background-oriented-schlieren-bos
My GitHub with code
► github.com/jte0419/Background_Oriented_Schlieren
==== REFERENCES ====
Python's "normxcorr2" function from GitHub user Sabrewarrior
→ github.com/Sabrewarrior/normxcorr2-python
NASA AirBOS Shock Wave Video
→ youtube.com/watch?v=443RLEnu_UI
Find all the rest of my references in my PDF document



![Explained: Popup Menu GUI [MATLAB]
Pop-up menus can be used to make a selection from a list of items. This video shows how to get the users input from a pop-up menu in a MATLAB GUI.
Tip:
The method described in the video gives you a little bit more information to work with when extracting data from the popup menu, but if you want the most efficient code, you can use the code below.
popVal = get(hObject,Value);
assignin(base,popVal,popVal);
In this code, youre simply getting the selected value. The first choice is 1, the second choice is 2, and so on. You can then immediately assign this variable back into the base workspace. This code is much simpler, but you also wont have a variable with the strings of all the choices available. In most of my applications, I dont care about the actual strings, just about the value thats selected. Explained: Popup Menu GUI [MATLAB]](https://i.ytimg.com/vi/Wv6aSJ6ifaQ/mqdefault.jpg)
![Explained: Check Box GUI [MATLAB]
A check box can be used for selection or deselection of an option. This video describes how to get the status of a check box in a MATLAB GUI.
Download the code from my website:
http://goo.gl/jSWqAH Explained: Check Box GUI [MATLAB]](https://i.ytimg.com/vi/XUdhhLyJHBg/mqdefault.jpg)

![Afterburners: Why the Nozzle Opens Wider with Afterburner On
In this video Ill go through an example showing why the nozzle on a jet engine needs to open up wider when the afterburner is on. You can tell that an afterburner is on when you see the visible radiation in the afterburner/jet pipe.
Ill be making some more in-depth videos about converging nozzles, converging-diverging nozzles, nozzle flow, choked flow, etc. If you havent already, subscribe so you can be notified when I post them!
NOTES
► Quick note regarding flow choking: You can increase the mass flow rate even when the flow is choked by increasing the upstream stagnation pressure. When I said you couldnt increase the mass flow rate anymore, it was for a fixed stagnation pressure, because thats what you usually have coming out of the turbine of the engine. So that plot on the board is valid for a fixed P_0, when we keep decreasing P.
REFERENCE VIDEOS
→ Turbojet Thrust Equation:
https://goo.gl/gyaalq
→ Stagnation Relations:
https://goo.gl/yOSNeL
→ Isentropic Relations:
https://goo.gl/vxhrLH
→ Speed of Sound:
https://goo.gl/3qZhII
ASSUMPTIONS AND NOTES
1) The nozzle is isentropic.
- Adiabatic: no heat is added or removed.
- Reversible: no friction, shocks, etc.
2) The working fluid is air. Of course the actual working fluid will be the mixture of air and combustion products. This assumption avoids extra calculations that can certainly be done, but are unnecessary for the outcome of this example.
3) The air is a calorically perfect gas (specific heats are constant).
4) The engine is fitted with a converging nozzle (not converging-diverging).
5) The direct result of turning the afterburner on results in an increase in the stagnation temperature of the fluid.
6) The flow is steady through the nozzle.
7) The flow is quasi-1D.
8) Mass flow rate and stagnation pressure do not change when the afterburner is turned on.
9) Values used are just characteristic numbers that might be valid for real engines.
10) If you do have a converging-diverging nozzle, then to get supersonic flow (higher exit velocities), you will still need to have choked flow. In order to increase subsonic flow to supersonic flow in a CD nozzle, the nozzle must be choked.
THUMBNAIL IMAGE
Photo: SAC Ben Stevenson/MOD [OGL http://www.nationalarchives.gov.uk/doc/open-government-licence/version/1/)], via Wikimedia Commons Afterburners: Why the Nozzle Opens Wider with Afterburner On](https://i.ytimg.com/vi/YKCqyaYMSs8/mqdefault.jpg)



