 Okay so I've been having a lot of back problems recently so recently I went to the doctor and they sent me to get x-rays on my back now those of you have been following me on YouTube for almost a decade now one of my earliest videos when I started doing videos I had torn my bicep and I had some x-rays done then some other scans and stuff like that and and I was very new to Linux at the time I was able to find software that allowed me to view x-rays another medical imaging so when I got my x-ray done if you ever get an x-ray done you just say to the person take the x-ray hey can I get a copy on a disc normally they'll say yes and they'll just give you a CD so I picked up the CD today and let's go ahead and have a look at it. There's a paper here with a bunch of personal information on there about me I'll show you that and then we got a disc here from the NCH healthcare system Naples Florida very generic very generic CD here just says you know the version of the medical equipment being used the date my name my birth date and what was scanned and what date it was scanned so let's go ahead and pop this in my CD drive I do still have one of those external but it's there we'll go ahead and put that in and I will mount that pseudo mount device CD ROM and we'll mount it to MNT okay mounted CDs take a little while to spin I hate CDs okay so here is my manager here my file manager let's just quickly look at it this way I'm gonna do an MNT so you can see here that there is looks like they have or you have software on there for a viewer and stuff like that but obviously it's it's Windows only software which doesn't help us and it's proprietary software so why would you want to use it anyway they even have like a little help manual here let's see a little PDF yeah it's just like looks like it's on using the software and equipment to make the CDs I guess so the does it say here so so imaging medical imaging the the files are called DI COM files I forget digital imaging something let's let's let's look that up real quick let's bring a web browser over here DI COM image Wikipedia here says digital imaging and communications in medicine and they can be different formats different settings found you know whether it's a x-ray or a cat scam something like that I assume so here a lot of just software stuff viewer another viewer in here and then we got images and image or IMG IMG loading again waiting for the CD spin looks like it's just images for the software again images okay yeah this is looking more like so you can see my computer seems to know this is an image because of the thumbnail like it's an image if I try opening up with a regular image viewer it's it's probably not gonna open it so let's go ahead and close that as under the images folder on there so what I want to do now is install the software that that I used last time to view them so let me go ahead and do that I will open up oops browser here here we go but okay and let's just go to films by Chris calm goes here goes search bar I'll type in x-ray nothing x-dash I can already see it right there ray okay so I click on this from let's see what date was this 09 yep that's when I tore my bicep with September of 09 so there we go and if I scroll through here we can look at the video here Medcon Medcon is the name of the software so let's go ahead we will pause that video and get it out of the way I will apt to search Medcon and it looks like we have two packages Medcon and an X Medcon I'm assuming X Medcon looks as probably what I was using in the video which is obviously it starts with the next so it's going to be a graphical interface let's install both sudo apt install Medcon X Medcon also I'm going to copy the files off the CD to because I'm gonna want to convert them and I just use or do that in the same directory if it's on the CD obviously the CD is not right a lot this point so we're gonna go I'm just gonna put in an attempt folder for now Victor I'll call it x-rays move into that directory and I will copy recursively from LMT images oops I could type today yeah everything in there to here give that a second again the CD has to spin up I hate CDs did I say that already they are amazing technology 20 years ago even even maybe 10 years ago wow and this is not a slow what is taking it so long I have no clue we'll just wait mm-hmm mm-hmm mm-hmm well maybe it's copy maybe they shouldn't be very large files basically they're basically images but with embedded information about how they were taken but oh there we go finally there we go and let's just move into the sub directories here we'll go to this one the first one here there's a file again if I try to display this with display it's probably just gonna give me oh looks like image magic opens it I don't know if that's if it's because med comes install let's let's go ahead and escape out of that let me pseudo have to remove medcon and x because I have had where image magic will know to use a certain program if it's installed so let's remove those and try displaying that again because that's super simple you don't even have to worry about installing x medcon display oh it's still opened it well just for some reason if you don't have image magic available which do it's a very standard package let's see move around here okay close that let's reinstall medcon and x medcon just to just to have a look at them because that's what I was gonna do this video on so we'll install them last time use x medcon but if we can do it from the shell just convert it that'd be awesome so let's just real quick man medcon and just look through here real quick let's go to the end and see how good good man pages always have examples so here are some examples here to display the image header medcon dash f in the name of the files to convert the images it's medcon dash after the files dash c probably for convert in this case it's given an example of a gif or a gif I always say it and then some other information after that so let's go ahead and start with this first one just remember dash f okay so quit out of that I will say medcon dash f and the name of the file go ahead do that and yeah let's less that out so you can see it's actually giving a bunch of information on like basically the settings in the machine and patient name and birthday and stuff like that lots of that means nothing to me but if you're a medical profession and you want to know how the image was taken the settings just like when you take a picture with a nice camera or even your your cell phone their image has embedded information on in some cases the GPS location but the aperture was set to what type of lens was being used stuff like that but this is for the x-ray machine so let's go back into the man file and go down to the end here again and look at the example for converting the images oops did not mean to do that that that actually close that window copy this quit out of that paste that but I'll replace files one and two and it seems like they put I did three different angles of my back and they put it in different folders so I'm just going to do the one from this folder do that and says it could not open the file to do to do to do to do to do wonder if let's do this let's just copy this file to temp x-rays and move into that folder possibly I copy these folders over so they might still have read-only permissions I'm guessing let's try running this again there we go no problem that time it made a couple of files these other files probably have again the information up but you can see it create a gift file there and if I say display I can display that image or actually let's use that F E H I receive that let's use that as a viewer right now there we go look around at my spine that's my spine people it hurts right around here okay so yeah that's that let's let's copy here I'll do this file to here I will recall it let's call it to and we will do the same for the one in this folder it's kind of annoying they put them each in a separate folder and the files are named the same but in the separate folders so I should be able to run this command but give it the files I just copy which I named two and three with no file extension and there we go now let's out and it looks like I have this gift and this gift let's just do again there we go yeah that's my spine from the side we shrink that down whatever and we will do it with zero zero dash two is the other one looks like there we go so anyway thank you for looking at my spine I guess this is the left side it's probably what that L stands for real quick let's look at X Medcon because why not X Medcon and I'm gonna bet if I do the same command I'm sure if I open this up I can go file open open the file but let's see we can check the man if I'm gonna guess that it runs similar so I should be able to give you that just the file name or you know dash F in the file name so let's do dash F in the final name since that's the way the shell command works and sure enough there is my Mac and it by default has a little slider here for like brightness and contrast if I remember correctly there's somewhere you go into settings and do different colors for that but that's it yeah so that was fun so yeah if you ever get x-rays or cat scans or you should ask my dentist I feel like it's somewhere I have one set of you know every two years they do x-rays of your teeth I feel like I have one year I should ask for the other ones from my dentist which actually brings up something when I'm sitting in the dental dentist chair and they're doing my cleaning and they have a screen up there where they're looking at teeth the name of the program they're using was like open something or other so I Google it actually is they're using an open source program it's not I don't think it was a GPL but it was cool that it was open source software at least that the dentist office is using and I think the way I can't wish I can remember the name of the software now it's one of those you know it's owned by a corporation they provide support and the hardware to go with it but the software itself is open source which is just awesome and I'm betting the dentist doesn't even know you know it's like you're just using good software you don't even know it you know they're just doing whatever the company tells you so that's just go to show you it's like there's no reason companies can't open source open sourcing your software doesn't mean you can't make money off of it especially if you're using a GPL if you're using something else like a BSD license or something like that the lous re-licensing you know they can other companies can take your software add to it and close off what they add to and and you don't get anything back but at least with the GPL license they're required to if they're disputing that software they have to get back so any changes they make you benefit from where with a BSD license company could take what your work and use your work but not give anything back to you so it's like a lot of companies like BSD licenses because they can do that you know and a lot of people don't realize that they're like oh well I use a BSD license because it's it's better for commercial use it's better for the companies to take your work and you not get anything in return the GPL license protects you that way they're free to use it however they want the dentist they don't have to pay you you know it's great if they do but at the very least when they make modifications if they distribute that at all they have to share that that source code back which just helps your project grow so anything they improve on you get the improvements as well and anything else who wants to work on the software so let's see what is next