Intensity Profiles

download notebookDownload this example as a Mathematica notebook.


Digital Image Processing defines a large number of specialized functions in order to increase your productivity in performing many common image analysis operations.

[Graphics:Images/index_gr_1.gif]

Function LineProfile is useful in obtaining details of amplitude variations in an image by returning pixel values along some arbitrary user-selected path. Here we use LineProfile to extract data values along a path defined by Line and ListPlot to plot them. The path was selected using the mouse.

[Graphics:Images/index_gr_2.gif]
[Graphics:Images/index_gr_3.gif]

This loads the example image.

[Graphics:Images/index_gr_4.gif]
[Graphics:Images/index_gr_5.gif]

This returns a graphics object showing the original image with a thin red line marking the selected path.

[Graphics:Images/index_gr_6.gif]

This displays the intensity profile along the selected path.

[Graphics:Images/index_gr_7.gif]
[Graphics:Images/index_gr_8.gif]

[Graphics:Images/index_gr_9.gif]