Hello! This is the beginning of some work that deals with my upcoming science fair project on sinograms! What you see here is a 3D model I made in blender and was able to export it into here so we can draw the outline or wireframe model. You can use wasd to move and arrow keys to look around. You can use the m and n keys to change which row of pixels you're doing your sinogram on (shown by the little red lines). You can hit f to alternate levels of full screen so you can see the variables that you use, a lot of interesting raw data, or just the 3D scene itself. So.. WHAT IS A SINOGRAM? It's part of a process used in x-ray imaging at the group called CXI from BYU. They use it in combination with tomography to get 3D scenes of their 2D images they take of tiny objects. You can also use it in medical imaging to get a 2D image from one dimensional scans, at least that's what the videos show, I'm pretty sure they just use 2D scans in real life, but you never know. Anyways, you look at a specific pixel height and read what you get from just that one row of pixels. Then you rotate your camera around the object slightly, and see what it looks like on that same pixel row now. You do that for a specified number of steps (# of measurements) and then you take all of the rows of pixels and stack them on top of each other to get one big image that shows you what happened at that pixel row throughout the time the object was moving. From there you can again reconstruct what the 3D object looked like. You only need 180 degrees to do this, luckily, so you can get much more detail for less measurements. So at the end of the day, that's what you've got is a way to see how the object moved throughout its rotation. I've been looking for patterns in what these sinograms look like so I can help the team at BYU align their images after circling around the right way so they can get good 3D objects! Turbowarp for much faster drawings (I would still recommend shift clicking the green flag for turbo mode when just running the system even in turbowarp) at: https://turbowarp.org/1365952423?turbo
Thanks to griffpatch for the scanner, and actually I copied griffpatch's code from scottish-flag, so thanks to them, too! Here's scottish-flag's project: https://scratch.mit.edu/projects/809975034 I then had to get the 3D to work, so I followed a very nice tutorial by FindingPepper https://www.youtube.com/watch?v=ZxBnB1IkTEg And then if you wanted an explanation on sinograms, here's a cool video that I didn't watch all the way yet: https://www.youtube.com/watch?v=f0sxjhGHRPo&t=307s