This site is devoted to mathematics and its applications. Created and run by Peter Saveliev.

Measuring staining in the liver

From Mathematics Is A Science

Jump to: navigation, search

This image analysis example came from a biomedical researcher: "I would like to know if the program can calculate relative areas and analyse differences in immunostaining intensity... In images 1 and 2, I need to know if pixcavator can convert image 1 in 2 (is just a question of removing a background, by using a filter) and then in image 2 giving a percentage of the are in red in relation to the all field. In image 3, I need 2 things (it is an immunostaining of the liver). I need to know if the program can give me a level of intensity of the immunostaining (that is the intensity of brow in the image) and secondly the fraction of the area that is immunostained (i.e., brown coloured)."

the original image, liver under microscope liver analyzed manually another image of liver

After a few minutes of experimenting with Pixcavator, this is best I can do for now (screenshot #1 below). As you can see some of the red area is not captured while some holes are counted (#2). To find area of those holes I had to analyze the image with different settings (#3). So, the total area of the red is approximately:

10864+3501+1426+2103+1746-1477-1453 = 16710.

Then the percentage is

16710/(853×640) = 3%.

liver analyzed with Pixcavator, initial attempt

liver analyzed with Pixcavator, outer contours

liver analyzed with Pixcavator, inner contours

Unsatisfied with the result, I modified the software (thresholding was used as the 2nd slider - to be introduced in version 4.2) and redid the analysis. The result was 5.51-1.65=3.86%. Conclusion: "final result is very good, since the connective tissue should have a area ratio of around 3%."

liver analyzed with Pixcavator, all contours obtained via thresholding

The third image was trickier because the lighting is uneven. Initially I was unable to capture all brown areas - not simultaneously. Certainly, cropping the image and analyzing parts one by one is an option. (The average color, it is displayed for each contour under "Gray" in the Pixcavator's output table). That's something to keep in mind: what is displayed is the average intensity with respect to the color channel that you've chosen, in this case "Green". (The ability to compute the average color with respect to all three channels is still under development.)

another image of liver analyzed with Pixcavator, average intensity

Unsatisfied with the result, I came up with another modification (average contrast was used as the 2nd slider - to be introduced in version 4.2) and redid the analysis. The result was much better. The average gray (intensity in the green channel) was 132.

liver analyzed with Pixcavator via the average intensity

Run this analysis with Pixcavator SI.

Other examples of image analysis