Saturday, August 11, 2007

Anatomy of a Histogram

We've all seen a histogram before if we've used CR or DR imaging systems, but it is important that we all know how to interpret them. Take a look at this histogram:



The horizontal axis in my histogram represents the quantity of information in my image, or the optical density values. In this particular instance, I have densities ranging from a value of 0 (absolute white) on the left to 256 (absolute black) on the right side of my image.

*Note: Keep in mind that this histogram was taken using "Image J" so the bit depth is limited. On a traditional CR system, and depending on the bit depth your system utilizes, you may see up to 16,000 plus shades of gray. This histogram is simply for demonstration.

The vertical axis represents the number of pixels that are assigned within each density value.

In the following image, one of the great aspects of the Image J software is displayed. Depending on where my cursor is placed on the histogram, you can tell on each image what the density value is for each column, as well as how many pixels were assigned that density value. In the image on the left, the value (or degree of density on a scale of 0-256) is 73. The count (or the number of pixels exposed with this density level) is 456. In the image on the right, my cursor was moved over a higher density value of 188, and a higher count of 5883. So in this image, the crosshair placement represents a darker density assigned to a greater number of pixels.



Just as a point of reference, this is the image represented by the histogram:



The CR system has a pre-programmed algorithm for each type of exam you do... this is what you are selecting when you input "chest lateral" before image plate scanning. This tells the computer that a histogram similar to the pre-programmed shape will be scanned. This is where the CR system can produce errors. Depending on the raw data that is scanned, the computer will assign a range on your histogram termed "values of interest" or VOI. Unfortunately, the Image J software did not include this, but I have represented the VOI with red lines in the following image:



The VOI on the histogram helps to determine your Exposure Index (Kodak) or S Number (Fuji), as well as how your image will be rescaled. In first generation CR systems, the operator could slide the VOI to the left or to the right in order to visualize recorded anatomy better, but most current applications do not allow the radiographer to do so. It may be possible, however, to apply a different LUT (lookup table) to the image to make adjustments. So when the computer applies automatic rescaling (the computer's attempt to adjust the image due to over/under exposure) to your image, the process may fail if the original histogram analysis is incorrect. Believe it or not, it is STILL very important to utilize the proper exposure factors.

This brings us to an important role of the software, histogram equalization. Equalization is performed by the computer in attempt to produce a more uniform histogram to increase the level of contrast in your image. After the original histogram is derived, an "inverse" histogram can be calculated and a spreading (or commonly termed flattening) of histogram values can be applied. Compare this image before histogram equalization and after:





This is a very basic explanation of a histogram and how it is utilized in a CR system. It would be easy to go onto many tangents from here (which I have a bad habit of doing in-person). A number of processing and post-processing errors can occur that I hope to dive into in the near future, but a basic understanding of histogram analysis is required. In the meantime, I would like to encourage everyone reading this to familiarize yourselves with the histograms utilized in your own imaging departments, and maniplulate them if you have the capability on your CR system and/or PACS terminals. There's not a lot of information about this in current textbooks, but I can imagine that we will all be responsible for knowing more about these things as we continue to replace conventional automatic processor technology with digital equipment.

Friday, August 10, 2007

Image J

I recently became aware of some free downloadable software that I found incredibly useful both as a student and an educator. Thanks to the Radiography faculty at UNC, I'm in love with Image J!

It's an online PACS toolset that allows you to manipulate any image you can view on your computer in multiple formats. Now, this isn't a database of images, but you can do pretty much anything that a PACS system can to any picture that you already have stored on your computer. Here's what you'll see at their home page:



To download, go to the "download" option at the very top of the page and click... then select the operating system you are utilizing on your PC. I happen to be using Windows at home, but notice one thing before you download - you can download with or without JAVA software included. I know I have JAVA on my computer, so I saved some room and chose the "without JAVA" option. You'll notice the file size is much smaller (1.7 MB compared to 21 MB). If you noticed already, I used Image J to create these images with a screen capture tool.



If you're familiar with PACS systems, you'll have lots of fun bringing up any image (particularly radiographic images) and playing around with the software, but there are many user-friendly features similar to what you might accomplish on photoshop with this software. If you go to the "documentation" hyperlink, there are tutorials available for you.



Once downloaded, you can open an image by going to file, open



Then select a picture from a file on your computer (or download something online first). Disclaimer - you must be aware of copyright infringement laws depending on the use of the picture you are downloading. Make sure to reference where you obtained the picture and/or obtain permission to use it :-)



Once you have selected a picture, you can begin utilizing the software to your heart's delight. This is a quick-start to get you going, but I encourage you to check out the "documentation" link listed above to learn about all of Image J's features. If you are planning on using this software for a school project or a lesson plan, it's worth investing a few minutes. I hope you like it as much as I do!

Here's a Quick Way to Speed Up Your Xray Exams

Beginning your clinical rotation in x-ray school can be overwhelming.  Not only are you plunged into a new environment, you are expected ...